tomcat - How to start two spring boot apps -


im playing spring boot. wanted create 2 microservices interact each other. problem cant start both of them, second app cant launch when first 1 running own tomcat:

exception in thread "main" org.springframework.context.applicationcontextexception: unable start embedded container; nested exception org.springframework.boot.context.embedded.embeddedservletcontainerexception: unable start embedded tomcat 

how can fix this?

thank you!

you need change port second application uses (to avoid clash same tcp port). 1 way add property

server.port = 8090 

to application.properties of second application


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -