使用jrebel遇到的问题

1,启动tomcat 时提示No spring WebApplicationInitializer types detected on classpath

使用jrebel遇到的问题

解决方法

1,修改src\main\resources\rebel.xml

原来的:
使用jrebel遇到的问题
 
修改之后的:

Xml代码  使用jrebel遇到的问题
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <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">  
  3.   
  4.     <classpath>  
  5.         <dir name="D:/software/eclipse/workspace2/tv_mobile/target/classes">  
  6.         </dir>  
  7.     </classpath>  
  8.   
  9.     <web>  
  10.         <link target="/">  
  11.             <dir name="D:/software/eclipse/workspace2/tv_mobile/target/m2e-wtp/web-resources">  
  12.                 <exclude name="/"/>  
  13.             </dir>  
  14.         </link>  
  15.         <link target="/">  
  16.             <dir name="D:/software/eclipse/workspace2/tv_mobile/src/main/webapp">  
  17.             </dir>  
  18.         </link>  
  19.     </web>  
  20.   
  21. </application>