Today, when the built-in SSH project (8.5 runs perfectly) is submitted from myeclipse8.5 to the checkout of other people (Myeclipse10 or myeclipse2014), the spring bean cannot be instantiated, for a long time, began to think that the jar conflict and other environmental issues, looking for a long time failed to solve, finally I wrote a test method, the original is in Myeclipse10 or myeclipse2014 ssh all the configuration file Web container is not found, has been error class path Resource [Applicationcontext.xml] does not exist, after opening all the configuration files are placed in
Web-infi class to solve the problem
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/6B/wKiom1SBkpWANJy_AADOEH1tz9I956.jpg "style=" float: none; "title=" QQ picture 20141205190911.png "alt=" Wkiom1sbkpwanjy_aadoeh1tz9i956.jpg "/>
All previous configuration files are in the same Level directory config of SRC,
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/6A/wKioL1SBkyTjFwHgAADBzchNUuE163.jpg "style=" float: none; "title=" QQ picture 20141205190940.png "alt=" Wkiol1sbkytjfwhgaadbzchnuue163.jpg "/>
For this problem, it turns out that the Myeclipse10 compiler did not compile the configuration file under class, causing the service to not come up:
After the configuration file moved to the SRC directory, the new compilation can be compiled into the configuration file under class, do not know whether it is myeclipse10 after the SRC and the directory can be, know the friend can guide you thank you,
December 5, 2014 19:12:38 Zhejiang
This article is from the "Gentle Knife" blog, please be sure to keep this source http://wenrouyidao.blog.51cto.com/7368180/1586773
Myeclipse10 later (I do not know whether it is correct, or there is a setting) cannot compile the SSH configuration file into the class directory