• maven错误总结


    1.  java compiler level does not match the version of the installed java project

      右键项目“Properties”,在弹出的“Properties”窗口左侧,单击“Project Facets”,打开“Project Facets”页面。在页面中的“Java”下拉列表中,选择相应版本就OK了

    2. Build path specifies execution environment JavaSE-1.8. There are no JREs installed in the workspace that are strictly compatible with this environment. 

      看警告的项目路径,选中项目修改

      选择项目点击鼠标右键-->properties-->java buil path-->右栏选择libraries项-->选择JRE system library--> Edit-->选择workspace default JRE-->确认完成。

    3.spring junit测试找不到SpringJUnit4ClassRunner.class

      https://blog.csdn.net/u014172271/article/details/76713798

      在父项目的pom文件中添加依赖

      <dependency> 
                <groupId>org.springframework</groupId>  
                <artifactId>spring-test</artifactId>  
                <version>4.2.4.RELEASE</version>  
           </dependency>

  • 相关阅读:
    css实现自适应正方形
    遇到稍微复杂的场景发现css功力不足
    聊聊缓存
    git学习笔记
    font-size:0的作用
    移动端高清屏适配方案
    react生命周期
    javascript写定时器
    js判断字符串是否以某个字符串开头和js分解字符串
    json.parse()和json.stringify()
  • 原文地址:https://www.cnblogs.com/wastedlands/p/8678842.html
Copyright © 2020-2023  润新知