码迷,mamicode.com
首页 >  
搜索关键字:annotation    ( 2536个结果
Spring MVC 事务配置
Spring MVC事务配置要了解事务配置的所有方法,请看一下《Spring事务配置的5种方法》本文介绍两种配置方法:一、 XML,使用tx标签配置拦截器实现事务一、 Annotation方式以下所使用环境为Spring4.0.3、Hibernate4.3.5一、 XML,使用tx标签配置拦截器实现...
分类:编程语言   时间:2014-05-16 09:44:21    阅读次数:486
spring mvc拦截器和<mvc:annotation-driven />的详解
MVC的拦截器经本人在Spring mvc中对方案1和方案2的测试表明,并没有拦截静态资源,所以可以放心使用方案1和方案2,方案3可以放弃,并且可以放心使用注解。方案一,(近似)总拦截器,拦截所有url 为什么叫“近似”,前面说了,Spring没有总的拦截器。会为每一个HandlerMappi...
分类:编程语言   时间:2014-05-16 09:38:07    阅读次数:408
jfreechart 的一般配置显示
1 package kite.struts2.action; 2 3 4 import java.awt.Font; 5 6 import javax.annotation.Resource; 7 8 import kite.domain.Question; 9 impo...
分类:其他好文   时间:2014-05-15 15:55:26    阅读次数:398
Junit与spring TestContext框架整合
所需要的包: junit需要是4.5以上 org.springframework.test-XXX.RELEASE.jar package test; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; i...
分类:编程语言   时间:2014-05-15 04:21:45    阅读次数:357
spring Quartz基于配置文件和注解的实现
这里只是做简单的记录如何实现。 一、基于配置文件的实现        ①编写需要调度的类 package com.study; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; //@Component public cla...
分类:编程语言   时间:2014-05-14 19:21:22    阅读次数:279
mybatis(基于annotation的方法知道就行了)
MyBatisUtil.javaUserMapper.javapackage edu.hhxy.btais.util;import java.io.IOException;import java.io.InputStream;import org.apache.ibatis.io.Resources...
分类:其他好文   时间:2014-05-14 03:15:45    阅读次数:323
复习java第五天(枚举、Annotation(注释) 概述)
一、枚举传统的方式:?在某些情况下,一个类的对象是有限而且固定的。例如季节类,只能有 4 个对象?手动实现枚举类:—private 修饰构造器。—属性使用 private final 修饰。—把该类的所有实例都使用 public static final 来修饰。练习代码: 1 public cla...
分类:编程语言   时间:2014-05-10 06:45:30    阅读次数:498
hibernate中关系映射
在数据库中数据的对应关系有一对一,一对多和多对一.那么在hibernate中应该如何对应呢?如下: 一对一: 假设两个实体,一个实体类为husband,另外一个实体类为wife.一个丈夫只能对应一个妻子,反之亦然.那么在hibernate中使用annotation如下:(husband类) 1 i....
分类:系统相关   时间:2014-05-09 09:59:54    阅读次数:450
在WebService中处理IP地址
//在webService中写到:import javax.annotation.Resource;import javax.servlet.http.HttpServletRequest;import javax.xml.ws.WebServiceContext;import javax.xml....
分类:Web程序   时间:2014-05-09 05:29:03    阅读次数:539
Spring <context:annotation-config/> 解说(转)
在基于主机方式配置Spring的配置文件中,你可能会见到这样一条配置,他的作用是式地向Spring容器注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、PersistenceAnnotationBeanP...
分类:编程语言   时间:2014-05-08 23:32:58    阅读次数:411
2536条   上一页 1 ... 250 251 252 253 254 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!