Renewal Code

The company's other systems on the server, the project is deployed directly to, usually with time, it is in the remote past webapp under tomcat, can be more than a formal library, but if you want to update the project, how to do it ?

1. First of all, will speak about how the local file, copy to a remote server ( preparatory work put to update files in a directory on a disk, one of the following operations is the local system to copy the contents of the disc on a remote server )

(1) In the input window cmd mstsc

(2) 1 position in the figure, enter the ip address of the remote server (with ports to add ports, no ip address to enter only can); 2 position opening the "show options", select " Local Resources "(position 3), expand the" Details "(position 4), check to copy over the letter (position 5)

(3) Open the remote server, open the "File Explorer", you can see the copy of the letter of the past. As shown below

2. Update the project code, the most important thing is to replace the background of the class file, let's take a local compiled class files, copy over the remote server, and then replace the class file before the fall. class file is on, the background documents are (as xml file, etc.) which operate in the following classes directory under the web-inf, on the front end can be replaced at the corresponding position in the web-inf same directory. Replace finished, restart the server (tomcat) ( Note: we replace, they can back up what you want to replace the file, preventing the update, the project error, can not restore the original system )

 

3. I replaced, restart tomcat, reported such a mistake     

Unsupported major.minor version 52.0

 

This error is 1.8 jdk to compile the project, and then after the class files compiled to bring to replace jdk compiled on the official version of the low class library files, all in all is inconsistent jdk version on the local version of jdk compiled and formal library .

 

解决方案:

右击本地上eclipse项目名,选择“Properties”,萱蕚“Java compiler”,选择比1.8低的jdk版本去编译,然后重新去更新

 

还是不行的话,就在“window”下的“preferences”,选择“Java”->“compiler”,修改为低版本

 

Guess you like

Origin www.cnblogs.com/WQX-work24/p/10931331.html