Spring/Java error: namespace element 'annotation-config' … on JDK 1.5 and higher

后端 未结 11 1191
Happy的楠姐
Happy的楠姐 2020-11-29 00:47

I have Spring/Java App that is compiled with Compiler compliance level 1.5.

I have a new Linux setup where I downloaded Apache Tomcat 8.0.8<

11条回答
  •  孤城傲影
    2020-11-29 01:49

    I created a fully automatic version of this answer. Please read that post first for the subtleties he addresses.

    • create an ant build file with the contents below the bullets
    • copy spring.jar next to the build.xml file
    • run the patch target
    • you are done, the file is patched

    build.xml file contents:

    
        
            
            
            
              majorJavaVersion = JAVA_14
            
            
            
                
            
            
        
    
    

提交回复
热议问题