ssh, maven and eclipse 那些破事

Unix根据该理念keep it simple, keep it stupid.可在j2ee有keep it complex, keep it smart. 所以,我彻底晕菜.

最后能活着把spring和struts整合到一起全凭这两个站点:

  • http://www.findjar.com/  什么时候报classnotdefine了,第一反应是上这里找应该是在那个jar包里的
  • http://search.maven.org/ 找到jar包之后咋办呢?

    上这个站点搜吧,事实上主要是确定version信息,

  • 找到之后加到随便一个pom.xml里,然后mvn compile就下载到M2_RESP下了
  • copy到WEB_INF/lib下,然后eclipse里F5,restart server
  • 搞定

我眼下为止的pom.xml里关于spring的是这个样子的.

      <dependency> 
	      <groupId>org.springframework</groupId>
	      <artifactId>spring-core</artifactId>
	      <version>3.1.0.RELEASE</version>
      </dependency> 

      <dependency> 
	      <groupId>org.springframework</groupId>
	      <artifactId>spring-hibernate3</artifactId>
	      <version>2.0.8</version>
      </dependency> 
      <dependency> 
	      <groupId>org.springframework</groupId>
	      <artifactId>spring-web</artifactId>
	      <version>3.1.0.RELEASE</version>
      </dependency> 
      <dependency> 
	      <groupId>org.springframework</groupId>
	      <artifactId>spring-context…………………………………………………………………………

来自:http://www.verydemo.com/demo_c143_i19976.html

原文地址:https://www.cnblogs.com/blfshiye/p/5033989.html