上次搭建spring+springmvc+mybatis框架時用的第三方連接池jar包,但是部署到tomcat中後訪問沒有問題,但是啓動時報了個JNDI的錯,我沒用JNDI你給我報什麼,fuck!把錯誤貼到百度上搜索沒搜到,更fuck,沒辦法上google搜吧,果然還是google牛逼一些,前幾條就有關於如何解決這個問題的內容,點進去,都是英文,很少能看明白的,沒關係,有強大的翻譯!好了,把下面的內容copy到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>