上一页 1 ··· 20 21 22 23 24
摘要: IStuDAO.java IStuService.java PersonAction.java StuDAOImpl.java StuServiceImpl.java 测试: github地址:https://github.com/leechenxiang/maven-spring001-hello 阅读全文
posted @ 2016-03-22 11:19 风间影月 阅读(472) 评论(0) 推荐(1) 编辑
摘要: github地址:https://github.com/leechenxiang/maven-spring001-helloworld 阅读全文
posted @ 2016-03-22 11:06 风间影月 阅读(317) 评论(0) 推荐(0) 编辑
摘要: spring bean配置后再默认情况下是单例的,如果需要配置可以选择 prototype, request, session和global session 在配置spring mvc的action时,可以对action使用 prototype bean的创建销毁过程: 测试: github地址:h 阅读全文
posted @ 2016-03-22 11:02 风间影月 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 别名就是可以通过另外一个名字来访问如下,已有bean:helloWorld3,那么定义别名(alias )后,就能使用“abc”来访问 github地址:https://github.com/leechenxiang/maven-spring001-helloworld 阅读全文
posted @ 2016-03-22 10:54 风间影月 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 静态工厂方法及实例工厂的使用: applicationContext.xml: HelloWorldFactory.java HelloWorldFactory2.java 测试: github地址:https://github.com/leechenxiang/maven-spring001-he 阅读全文
posted @ 2016-03-22 10:50 风间影月 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 简单介绍一下spring,一方面带新手入入门,一方面自己也重温一下第一个小工厂先暂时不用maven,下一个会用maven来来配置 jar包只需要一个,spring版本为2.5(暂时为2.5,后续更新,基本核心都是一样的),引入spring.jar到lib,如下: 在src下新建application 阅读全文
posted @ 2016-03-22 10:34 风间影月 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 其实一直都在使用常用工具类,只是从没去整理过,今天空了把一些常用的整理一下吧 怎么使用的一看就明白,另外还有注释,最后的使用pom引入的jar包 附上地址:https://github.com/leechenxiang/maven-apache-commons 阅读全文
posted @ 2016-03-17 17:09 风间影月 阅读(6267) 评论(0) 推荐(0) 编辑
摘要: 昨天发现单位里的eclipse中的maven直接不显示了,不能在 Windows-Preference 中显示maven 也不能新建maven工程,也不能maven-update,连STS(Spring tool suite) 也不起作用 一开始以为下载了SVN冲突了,单位的工程是没有使用maven 阅读全文
posted @ 2016-03-16 09:11 风间影月 阅读(391) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24