spring+springmvc+ mybatis在sts tomcat8部署出现 严重: Context initialization failed java.lang.IllegalArgumen

问题spring+springmvc+ mybatis在sts tomcat8部署出现

严重: Context initialization failed

java.lang.IllegalArgumentException
at org.springframework.asm.ClassReader.(Unknown Source)
at org.springframework.asm.ClassReader.(Unknown Source)
at org.springframework.asm.ClassReader.(Unknown Source)

参考:

http://stackoverflow.com/questions/22730801/java-se-spring-data-hibernate

http://stackoverflow.com/questions/24128045/spring-context-initialization-failed-with-java-lang-illegalargumentexception-whi


意思是TOmcat8  的运行环境是 java8  如果要用java 8  则需要 spring 4.0 + 

解决方法:

sts 中   window-->preference-->server---.>runtime environment----》

选择tomcat 8  edit

spring+springmvc+ mybatis在sts tomcat8部署出现 严重: Context initialization failed java.lang.IllegalArgumen_第1张图片

spring+springmvc+ mybatis在sts tomcat8部署出现 严重: Context initialization failed java.lang.IllegalArgumen_第2张图片

改成1.7  重新启动服务器

测试controler

spring+springmvc+ mybatis在sts tomcat8部署出现 严重: Context initialization failed java.lang.IllegalArgumen_第3张图片


  nice


你可能感兴趣的:(SpringMVC)