随笔分类 - Spring
摘要:IStuDAO.java IStuService.java PersonAction.java StuDAOImpl.java StuServiceImpl.java 测试 github地址:https://github.com/leechenxiang/maven-spring001-hellow
阅读全文
摘要:之前的文章大多都是一带而过,一方面比较简单,一方面不是用的注解形式 在企业开发中,主要还是使用的注解来进行开发的 主要还是用 @Resource,另外2个不常用 测试: github地址:https://github.com/leechenxiang/maven-spring001-hellowor
阅读全文
摘要:IStuDAO.java IStuService.java PersonAction.java StuDAOImpl.java StuServiceImpl.java 测试: github地址:https://github.com/leechenxiang/maven-spring001-hello
阅读全文
摘要:github地址:https://github.com/leechenxiang/maven-spring001-helloworld
阅读全文
摘要:spring bean配置后再默认情况下是单例的,如果需要配置可以选择 prototype, request, session和global session 在配置spring mvc的action时,可以对action使用 prototype bean的创建销毁过程: 测试: github地址:h
阅读全文
摘要:别名就是可以通过另外一个名字来访问如下,已有bean:helloWorld3,那么定义别名(alias )后,就能使用“abc”来访问 github地址:https://github.com/leechenxiang/maven-spring001-helloworld
阅读全文
摘要:静态工厂方法及实例工厂的使用: applicationContext.xml: HelloWorldFactory.java HelloWorldFactory2.java 测试: github地址:https://github.com/leechenxiang/maven-spring001-he
阅读全文
摘要:简单介绍一下spring,一方面带新手入入门,一方面自己也重温一下第一个小工厂先暂时不用maven,下一个会用maven来来配置 jar包只需要一个,spring版本为2.5(暂时为2.5,后续更新,基本核心都是一样的),引入spring.jar到lib,如下: 在src下新建application
阅读全文
浙公网安备 33010602011771号