spring-boot启动debug信息中non-fatal error解决

  • java.lang.ClassNotFoundException: org.springframework.data.web.config.EnableSpringDataWebSupport
    添加依赖(版本由parent中spring-data-releasetrain定义)

    <dependency>
     <groupId>org.springframework.data</groupId>
     <artifactId>spring-data-commons</artifactId>
    </dependency>
  • java.lang.ClassNotFoundException: org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
    添加依赖

    <dependency>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-security</artifactId>
    </dependency>
  • java.lang.ClassNotFoundException: java.lang.FunctionalInterface
    JDK 8以下才会报这个问题



文/chaofeng(简书作者)
原文链接:http://www.jianshu.com/p/a3ed7b2f1e81
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
原文地址:https://www.cnblogs.com/softidea/p/5978528.html