1、注释配置: 2、注释启动类: 3、在tomcat中的cnf下的context.xml中配置: <Loader delegate="true"></Loader> 转载于:https://www.cnblogs.com/zhengbai/p/9933992.html