Код: Выделить всё
{"exception_class":"java.lang.IllegalStateException","exception_message":"The following classes could not be excluded because they are not auto-configuration classes:\n\t- org.springframework.cloud.sleuth.autoconfig.brave.BraveAutoConfiguration\n","stacktrace":"java.lang.IllegalStateException: The following classes could not be excluded because they are not auto-configuration classes:\n\t- org.springframework.cloud.sleuth.autoconfig.brave.BraveAutoConfiguration\n\n\tat org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.handleInvalidExcludes(AutoConfigurationImportSelector.java:227)\n\tat org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.checkExcludedClasses(AutoConfigurationImportSelector.java:213)\n\tat org.springframework.boot.autoconfigure.AutoConfigurationImportSelector.getAutoConfigurationEntry(AutoConfigurationImportSelector.java:144)\n\tat org.springframework.boot.autoconfigure.AutoConfigurationImportSelector$AutoConfigurationGroup.process(AutoConfigurationImportSelector.java:468)\n\tat org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGrouping.getImports(ConfigurationClassParser.java:917)\n\tat org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:847)\n\tat org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:817)\n\tat org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198)\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:418)\n\tat org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:290)\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:349)\n\tat org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:118)\n\tat org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:791)\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:609)\n\tat org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752)\n\tat org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:439)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:318)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1361)\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1350)\n\tat com.lover.def.Application.main(Application.java:21)\n"},"@version":1,"source_host":"early-merchant-experience-5477d74cc7-tjsdk","message":"Application run failed","thread_name":"main","@timestamp":"2025-08-22T09:15:01.803+0000","level":"ERROR","logger_name":"org.springframework.boot.SpringApplication"}< /code> < /p>
Можно что -то, пожалуйста, помогите, как избежать этой ошибки. < /p>
Я попытался удалить «исключить» из аннотации SpringbootApplication, но без успеха.
также попытался добавить ниже зависимости
io.micrometer micrometer-tracing-bridge-otel Подробнее здесь: https://stackoverflow.com/questions/797 ... -8-getting