Open classDawn opened 7 years ago
同样问题 启动不了
redis 那个 @Value 也是取不到值
@dazi005 redis哪个不用配置也可以启动,只是为了作集群存储用户信息用的,基础的系统用不到redis
@classDawn @dazi005 启动前需要先配置数据源,另外启动的时候需要增加启动参数--spring.profiles.active=dev 或 pro
我是把spring.profiles.active=dev直接写到application.properties里面的,然后通过sts直接运行就可以了
Consider revisiting the conditions above or defining a bean of type 'javax.sql.DataSource' in your configuration.
现在下载还是会出这个问题
2017-05-31 23:47:20.137 ERROR 8136 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Destroy method on bean with name 'org.springframework.boot.context.properties.ConfigurationPropertiesBindingPostProcessor' threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7205765b: startup date [Wed May 31 23:47:19 CST 2017]; root of context hierarchy at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
这是什么问题