问题一.springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgumentException

问题二.或者IDEA启动tomcat抛出-------Error:java: 无效的目标发行版: 1.8

1.原因:spring3.2和java1.7不兼容。
2.解决方法:将项目环境全部换成1.7
1).点击File-Project Structure-Project

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument

2).点击File-Project Structure-Modules-Sources

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument

3).点击File-Project Structure-Modules-Dependencies

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument

4).点击File-Project Structure-SDKs

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument

5).点击Tomcat的Edit Configurations

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument

补充:与环境变量JDK1.7或者1.8无关。(附图)

springmvc运行时,Failed to read candidate component class;nested exception is java.lang.IllegalArgument
按照上述步骤1)------5),配好。我的环境变量是JKD1.8也也可。

相关文章:

  • 2021-12-28
  • 2021-04-19
  • 2022-12-23
  • 2022-01-17
  • 2021-08-02
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2019-11-17
  • 2022-12-23
  • 2021-12-25
  • 2021-07-11
相关资源
相似解决方案