spring boot javax/annotation/ManagedBean : Unsupported major.minor version 51.0

spring boot 启动报错 javax/annotation/ManagedBean : Unsupported major.minor version 51.0

spring boot javax/annotation/ManagedBean : Unsupported major.minor version 51.0_第1张图片


原因 jdk 版本问题,笔者用的是jdk 1.6,pom.xml properties修改为


    1.6
    UTF-8
    UTF-8
    ${java.version}
    ${java.version}
    7.0.59
  

还有可能会遇到下面的报错

nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory

nested exception is java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
相应的加一下 mvn 依赖即可

你可能感兴趣的:(spring boot javax/annotation/ManagedBean : Unsupported major.minor version 51.0)