简体   繁体   中英

how to deploy Spring boot application in IIS

I have a Spring boot application, If I want to run that application locally we can run with spring-boot:run Or by just executing the main class our project is ready to work. But here I want to deploy the same on IIS Server.

I have an angular app, by just adding the path and running ng build --prod is sufficient to run in the IIS but when coming to java I am confused to run the application in IIS.

I dont think so it will work with spring-boot:run as it is using internal tomcat server, But in the IIS how do we need to deploy this application.

It is a java based application so it is not recommended to deploy in iis.you could use a docker container to run the application and then use a reverse proxy to redirect the request to that API.

Reference link:

https://blog.codecentric.de/en/2017/04/ansible-docker-windows-containers-spring-boot/

https://techcommunity.microsoft.com/t5/iis-support-blog/setup-iis-with-url-rewrite-as-a-reverse-proxy-for-real-world/ba-p/846222

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