jeecgboot框架 官网:http://www.jeecg.com/ 打的jar包有几百兆大小 lib占用了大多数 分离的好处就是将lib提取出来 减少了打包的速度
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<layout>ZIP</layout>
<includes>
<include>
<groupId>nothing</groupId>
<artifactId>nothing</artifactId>
</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
- config :将resources文件下的文件放到config文件
- lib: lib文件
- jar包
- 运行jar包bat文件 命令:java -Dloader.path=lib文件位置 -jar jar包位置
经过我翻越github的Issues记录时 发现有这个问题 并经过我的尝试解决方法有如下
jeecg-boot-module-demo 项目下有个yml文件 这个项目打的包在lib文件夹下 导致优先级高了 这个yml文件没有配置信息 所以说报错
将lib文件下的jeecg-boot-module-demo-3.0.jar 包给删掉错误就解决了
在system项目中resources文件下 创建config文件夹并将所有的文件放置里面 也可以解决这个问题
参考文章: https://github.com/jeecgboot/jeecg-boot/issues/3290 http://doc.jeecg.com/2043890
我的博客即将同步至腾讯云开发者社区,邀请大家一同入驻:https://cloud.tencent.com/developer/support-plan?invite_code=3rvtdvskn7uo8