MAVEN编译问题:
我们不应该给 parent 项目添加 spring-boot-maven-plugin 构建插件,而应该给终端项目使用,因为这个插件的 repackage 目标会处理 jar 包,导致依赖它的模块无法使用它。在 parent 项目中使用它会导致每个子项目都执行了该目标,进而出现编译失败。
application.properties问题:
使用@Configuration + @Bean + @ConfigurationProperties(prefix = "") 遇到对象字段是驼峰原则的 使用"-" 隔开
遇到对象字段是List的,采用数组的方式例如:
message.resource.basenames[0]=classpath:i18n/message.properties
message.resource.basenames[1]=classpath:i18n/message2.properties
server.port=8888 默认web项目需要制定端口
Tomcat问题:
2018-03-16 23:19:35.489 ERROR 6564 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.24] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14]
spring boot:2.0.3
后来降低版本到1.5.7就没有这个问题了
因为公司环境不容我们随意修改,只能退一步 改变我们自己了
2万+

被折叠的 条评论
为什么被折叠?



