spring
j416066989
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
手动加载spring配置文件
分配置文件在classpath下和web-inf下两种情况的加载: ApplicationContext context = new FileSystemXmlApplicationContext("WebRoot/WEB-INF/applicationContext.xml"); new ClassPathXmlApplicationContext("applicationContext...原创 2012-10-16 16:48:59 · 337 阅读 · 0 评论 -
junit4应用以及和spring的整合
junit3 就加载junit3对应的jar包就可以 测试类需要继承junit.framework.TestCase 重写setup方法在setup加载需要的配置文件 测试方法需要以test开头testMyCase() junit4 依赖的jar:org.hamcrest.core.jar junit4.jar 只需要测试方法加org.junit.Test注解 或者按照3...原创 2012-10-16 17:02:05 · 150 阅读 · 0 评论 -
spring mvc学习
web.xml配置spring mvc的servlet [code="xml"] spring org.springframework.web.servlet.DispatcherServlet 1 spring / Spring character encoding filter ...原创 2012-10-17 14:19:26 · 121 阅读 · 0 评论 -
spring管理的bean的生命周期
注解配置中给对应的bean添加org.springframework.context.annotation.Scope注解 //@Scope("singleton") // 容器范围 //@Scope("prototype") //每次获取bean都new //@Scope("request") //一次http请求一个实例 //@Scope("session") //一个http s...原创 2012-10-30 13:43:50 · 122 阅读 · 0 评论 -
J2ee中常用包解释
解释j2ee开发中常用包含义,有些可能不太用的时间长了会忘记,做个笔记 ejb3-persistence.jar(Enterprise JavaBean)包中包含javax.persistence.Entity等jar 如果用到hibernate注解方式配置实体对象时候,需要用到 jta.jar(Java Transaction API)包中包含javax.transaction.T...原创 2012-11-05 10:28:46 · 163 阅读 · 0 评论 -
spring mvc传值(json格式)
java端: spring-servlet.xml中的部分配置信息: [code="xml"] ...原创 2012-11-28 14:30:27 · 185 阅读 · 0 评论 -
flex HTTPService应用
flex和spring security搭建的时候遇到一个问题,在发送http请求的时候需要给服务器发送sessionid要不然你只能请求到security没有拦截的login页面 [code="as"] var httpService:HTTPService=new HTTPService; httpService.url=Constants.SERVER + this...原创 2012-12-07 10:25:54 · 175 阅读 · 0 评论
分享