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
Post a Comment