简体   繁体   中英

Spring boot Multi Module project, Rest Services and Web Application

we have a Spring boot App that is a Rest Service, it has several microservice to attend other app in our environment, but now we need to create a web app for administrative purpose, so we were thinking of expanding this project making it a multi module project so it can share the repository and other utilities that they will have in common.

the only thing we have concerns is about the spring security config, it is possible that each module has their own security config and still be a single executable jar?

You can make. Maven or Gradle multi-module project. Common code will be a module without executable. Then you can import that module in all the others. Yes, different modules can have different security config class.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM