While deploying more than one Spring Boot application in a single Tomcat server means showing exception. How to solve this?

前端 未结 3 744
孤街浪徒
孤街浪徒 2021-01-04 07:48

I am using Spring Boot in my Java application, and to deployment used Tomcat 7. I was trying to deploy multiple Spring Boot projects in the same server it showing exceptions

3条回答
  •  时光说笑
    2021-01-04 08:33

    In my case, we need to have two of the same application online during updates before cutting over sessions to maintain 100% uptime. In this case, you cannot just specify a unique name (unless you update it for each potential deployment). Instead, I disabled jmx with the following setting in my application.yml file for all profiles:

    spring:
      jmx:
        enabled: false
    

提交回复
热议问题