spring - Start two springboot apps in eclipse -


is possible start 2 spring boot applications in eclipse, in same workspace in same time? how can set 2 different ports 2 spring boot applications?

yes. possible run 2 spring boot apps same time in same workspace in eclipse. possible because each spring boot app comes embedded tomcat server , have make sure each of them uses different port number respectively.

in each spring boot application, add application.properties file in src/main/resources folder. override default 8080 port, have use server.port property in application.properties file. make sure set different port in each of application. example, set server.port=8888 in 1 application , server.port=9999 in application, app1 run on 8888 port , app2 run on 9999 port.

to scan free port (using os natives prevent clashes) use server.port=0.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -