boot version 2.7.5

Simple app made with Initializr and spring-boot-starter-jdbc dependency.

In the application.yml I have:

spring:
  application:
    name: Somename
  aop:
    auto: false
  jmx:
    enabled: false

Starting the app with --debug flag shows in the logs:

DataSourceJmxConfiguration matched: - @ConditionalOnProperty (spring.jmx.enabled=true) matched (OnPropertyCondition)

Comment From: Alterant-zz

The same is for JmxAutoConfiguration:

JmxAutoConfiguration matched: - @ConditionalOnClass found required class 'org.springframework.jmx.export.MBeanExporter' (OnClassCondition) - @ConditionalOnProperty (spring.jmx.enabled=true) matched (OnPropertyCondition)

Comment From: bclozel

How are you running the application? Is it in an IDE or on the command line? Does it behave the same way with "java -jar"? Are there environment variables or other configuration files?

If those questions don't help you to find the source of the issue, can you please create a sample application that reproduces the problem and share it as a Github repository?

Thanks!

Comment From: Alterant-zz

I apologize, my fault. Was running it via IDEA Run button which adds spring.application.admin.enabled=true and spring.jmx.enabled=true to the startup args.

Thanks a lot!

Comment From: bclozel

Thanks for letting us know!