摘要:
spring boot在控制台输出彩色日志 阅读全文
spring boot在控制台输出彩色日志 阅读全文
posted @ 2017-06-11 11:35
来自非洲大草原的食人虎
阅读(3004)
评论(0)
推荐(0)
spring boot在控制台输出彩色日志 阅读全文
spring boot 学习使用@ConfigurationProperties注解 阅读全文
spirng boot打包成war部署 阅读全文
在开发过程之中,经常需要在开发和测试环境中进行互相切换,当切换的同时需要加载相应的配置文件,因此要经常
性的替换配置文件中的相关的配置,长此以往感到十分痛苦。如果能针对开发和测试环境建两个配置文件,当需要进行切换时程序能自
动加载相应的配置,该多好,可以使用spring提供的profile功能来实现这样的需求。 阅读全文
最近阅读spring boot源码时发现,发现当spring使用ConfigurationClassParser加载使用@Configuration注解类后,会使用AutoConfigurationImportSelector对加载的@Configuration注解的类进行一次过滤。当AutoConfigurationImportSelector过滤完成后会自动加载类路径下Jar包中META-INF/spring.factories文件中 AutoConfigurationImportListener的实现类并触发fireAutoConfigurationImportEvents事件。 阅读全文
Description:
Cannot determine embedded database driver class for database type NONE
Action:
If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).
这是因为spring boot默认会加载org.springframework.boot.autoconf 阅读全文
Spring框架中InitializingBean执行顺序 阅读全文