1,启动tomcat 时提示No spring WebApplicationInitializer types detected on classpath
解决方法
1,修改src\main\resources\rebel.xml
原来的:
修改之后的:
- <?xml version="1.0" encoding="UTF-8"?>
- <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd">
- <classpath>
- <dir name="D:/software/eclipse/workspace2/tv_mobile/target/classes">
- </dir>
- </classpath>
- <web>
- <link target="/">
- <dir name="D:/software/eclipse/workspace2/tv_mobile/target/m2e-wtp/web-resources">
- <exclude name="/"/>
- </dir>
- </link>
- <link target="/">
- <dir name="D:/software/eclipse/workspace2/tv_mobile/src/main/webapp">
- </dir>
- </link>
- </web>
- </application>