首页 > 代码库 > springmv日志debug异常,javax.naming.NameNotFoundException

springmv日志debug异常,javax.naming.NameNotFoundException

解决方案:

在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>

springmv日志debug异常,javax.naming.NameNotFoundException