springboot项目打包遇到的问题
1 Failed to configure a DataSource: ‘url’ attribute is not specified and no embedde
解决方法:
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
2 IDEA编译报错“程序包XXX不存在”
错误原因是打包方式不对。
spring-boot maven打包,一般pom.xml文件里会添加
这样打的jar里会多一个目录BOOT-INF。(反编译工具打开)
2.引起问题,程序包不存在。
3.解决办法,如果A子模块包依赖了B子模块包,在B子模块的pom文件,加入
目录BOOT-INF没有了
还没有评论,来说两句吧...