一、该问题的重现步骤是什么?
controller访问
2. 配置
3.依赖得包
org.springbladeblade-starter-metricsorg.springframework.bootspring-boot-starter-weborg.springframework.bootspring-boot-starter-freemarker
二、你期待的结果是什么?实际看到的又是什么?
通过访问controller可以访问到resources下的模板页面
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
BladeX 2.9.0.RELEASE
四、请提供详细的错误堆栈信息,这很重要。
2022-03-15 10:08:48.188 INFO 3667 --- [ main] org.reflections.Reflections : Reflections took 11 ms to scan 1 urls, producing 1 keys and 5 values
2022-03-15 10:08:48.202 INFO 3667 --- [ main] org.reflections.Reflections : Reflections took 12 ms to scan 1 urls, producing 1 keys and 7 values
2022-03-15 10:08:48.217 INFO 3667 --- [ main] org.reflections.Reflections : Reflections took 13 ms to scan 1 urls, producing 2 keys and 8 values
2022-03-15 10:08:48.365 INFO 3667 --- [ main] org.reflections.Reflections : Reflections took 146 ms to scan 220 urls, producing 0 keys and 0 values
2022-03-15 10:08:49.163 WARN 3667 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[enjooo] & group[DEFAULT_GROUP]
2022-03-15 10:08:49.170 WARN 3667 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[enjooo.yaml] & group[DEFAULT_GROUP]
2022-03-15 10:08:49.175 WARN 3667 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[enjooo-dev.yaml] & group[DEFAULT_GROUP]
2022-03-15 10:08:49.176 INFO 3667 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-enjooo-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-enjooo.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-enjooo,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}]
2022-03-15 10:08:49.181 INFO 3667 --- [ main] store.tke.web.enjooo.EnjoooApplication : The following profiles are active: dev
2022-03-15 10:08:49.262 ERROR 3667 --- [ main] o.s.boot.SpringApplication : Application run failed
java.lang.IllegalStateException: Annotation @EnableCircuitBreaker found, but there are no implementations. Did you forget to include a starter?
at org.springframework.cloud.commons.util.SpringFactoryImportSelector.selectImports(SpringFactoryImportSelector.java:77) ~[spring-cloud-commons-2.2.9.RELEASE.jar:2.2.9.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DefaultDeferredImportSelectorGroup.process(ConfigurationClassParser.java:904) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGrouping.getImports(ConfigurationClassParser.java:879) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:809) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:780) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:193) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:320) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:237) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:280) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:707) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:533) ~[spring-context-5.2.15.RELEASE.jar:5.2.15.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:755) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:402) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:312) ~[spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.3.12.RELEASE.jar:2.3.12.RELEASE]
at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50) [blade-core-launch-2.9.0.RELEASE.jar:na]
at store.tke.web.enjooo.EnjoooApplication.main(EnjoooApplication.java:10) [classes/:na]
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端