Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何改成jar包运行 #9

Open
16602905643 opened this issue Oct 30, 2020 · 6 comments
Open

如何改成jar包运行 #9

16602905643 opened this issue Oct 30, 2020 · 6 comments

Comments

@16602905643
Copy link

可以导成jar包运行么 我试了几次不行 希望博主能给个教程

@JoeyBling
Copy link
Owner

此项目是需要集成外部容器运行的,纯jar包集成SpringBoot请参考另外一个项目:bootplus
而且此项目我已经没有维护了

@16602905643
Copy link
Author

我之前用的这个框架 现在需要jar包运行 试了好多配置都不行 希望博主能将jar包配置页分享下 由于之前就用的这个框架 所以没法再用新框架重构

@JoeyBling
Copy link
Owner

JoeyBling commented Oct 30, 2020

我先前bootplus也是拿这个改的,但是当时改没有记录文档,所以改的点记不太清楚了,如果坚持要改改的点还是比较多的

@16602905643
Copy link
Author

那只有把两套代码对比着看 博主有没有修改思路或者当时修改的方向提点下 谢谢

@JoeyBling
Copy link
Owner

JoeyBling commented Oct 30, 2020

传统容器启动服务改为jar包启动服务注意点

我稍微说几点重要的吧。

  1. 在pom文件添加spring-boot-maven-plugin插件配置
  2. 移动webapp目录到resource下,并更新配置keyspring.freemarker.template-loader-pathclasspath:/templates/(具体根据你移动后来定,主要是添加classpath)
  3. SysFileController文件上传控制器要改(可以参考bootplus)
  4. ... 暂时记得这么点,后面想到了再更新吧

@JoeyBling
Copy link
Owner

JoeyBling commented Oct 30, 2020

改动了这几点如果能把项目跑起来正常且不报错应该就没多大问题,对照bootplus改的话估计不简单(PS:因为我已经升级了boot版本到2.0+了,且新增了许多功能)...

@JoeyBling JoeyBling changed the title 如何到成jar包运行 如何改成jar包运行 Oct 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants