eclipse导入svn项目经常出现的问题

  1. 导入

Imprort—->Existing Projects Into WorkSpace——>Select root directory——>finish

 

 

 

2. 将项目发布到tomcatwebapp的目录下面

              右击项目——Properties——Project Facts——勾选Dynamic Web Module3.0+Java1.7+JavaScript——Apply——Ok——然后new 一个新server

 

 

3.Deployment Assembly做适当的修改

 

4.若出现部分类报红的情况

              方法:项目右键–>Properties–>Java Build Path,切换到libraries tab页,找到JRE System Library移除, 然后再点击Add Library–>JRE System Library添加即可。 

 

5.若项目中出现中文乱码

              Window——preferences——general——workspace——text file encoding选择UTF-8

 

6若出现import javax.servle…….报红的情况

              项目右键——Properties——Java Build Path——libraries——Add Library

              ——ServerRuntime——选择tomcat

 

7若出现Context initialization failed

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\software\apache-tomcat-7.0.92\webapps\Assist\WEBINF\classes\com\huawei\assist\base\SpringTestCase.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [D:\software\apache-tomcat-7.0.92\webapps\Assist\WEB-INF\classes\com\huawei\assist\base\SpringTestCase.class]; nested exception is java.lang.IllegalArgumentException

 

项目右键——Properties——JavaCompiler——Compiler compliance level 1.7

猜你喜欢

转载自blog.csdn.net/qq_41536539/article/details/91983936