spring mvc启动出现 NamingException with message: Name [spring.liveBeansView.mbeanDomain],解决方式:
在web.xml中增加如下内容:
<context-param> <param-name>spring.profiles.active</param-name> <param-value>dev</param-value> </context-param> <context-param> <param-name>spring.profiles.default</param-name> <param-value>dev</param-value> </context-param> <context-param> <param-name>spring.liveBeansView.mbeanDomain</param-name> <param-value>dev</param-value> </context-param>
时间: 2024-11-05 14:50:50