ssh, maven and eclipse那些破事

mac2022-06-30  21

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</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>3.1.0.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-asm</artifactId> <version>3.1.0.RELEASE</version> </dependency>

下面就开始整合spring和hibernate,j2ee对我来说还真是痛苦.

转载于:https://www.cnblogs.com/db2zos/archive/2012/01/07/2316167.html

最新回复(0)