Loading

NamingException with message: Name [spring.liveBeansView.mbeanDomain]

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>

 

posted @ 2016-06-24 11:16  stono  阅读(2762)  评论(0编辑  收藏  举报