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

如何做到分模块打包发布 #10

Open
summerz1993 opened this issue Jul 11, 2017 · 1 comment
Open

如何做到分模块打包发布 #10

summerz1993 opened this issue Jul 11, 2017 · 1 comment

Comments

@summerz1993
Copy link

如题,
比如user模块,login模块,都可以独立的打包,做到微服务的接口。

@lcw2004
Copy link
Owner

lcw2004 commented Jul 13, 2017

@summerz1993
单独打包运行是很简单的。把main工程里面的OneMainApplication文件拷贝到需要单独运行的模块里面,再将各个模块需要的Confident文件从main工程过去,就可以单独运行了。

麻烦点的是各个模块之间的接口调用以及各个模块的配置文件的统一管理。

  1. 接口调用,你可以搜索一下“Spring Boot Eureka”,你可以参考改一下。另外不同模块之间的接口调用要改为微服务的调用方式。
  2. 配置文件的统一管理,你可以搜索一下“Spring Cloud Config”,网上有很多的资料。

我目前还没这种需求,所以暂时不会改造为分模块打包发布,得你自己改一下了。

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