`
zhangdefeng2008
  • 浏览: 12396 次
社区版块
存档分类
最新评论
文章列表
Interceptor的接口定义如下: public interface HandlerInterceptor {   boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception;   void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndViewmodelAndView) throw ...
mvc:annotation-driven 注解<mvc:annotation-driven/>相当于注册了DefaultAnnotationHandlerMapping和AnnotationMethodHandlerAdapter两个bean,配置一些messageconverter。即解决了@Controller注解的使用前提配置。   <context:annotation-config/>1)隐式地向Spring容器中注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcess ...
1.controller中的方法添加ResponseBody注解   @ResponseBody public UserDTO getUser(@PathVariable("id") Long id) { User user = accountService.getUser(id); UserDTO dto = ..... return dto; }  2.返回的UserDTO类上方,添加【@XmlRootElement(name = "User") 】注解   3.spring-mv.xm ...
discriminator–使用一个结果值以决定使用哪个resultMap ocase–基于不同值的结果映射 §嵌套结果映射–case也能引用它自身, 所以也能包含这些同样的元素。它也可以从外部引用resultMap     1.引用外部resultMap <resultMap id="vehic ...

css圆角样式

    博客分类:
  • css
firefox,Safari .ui-corner-all-12 {     -webkit-border-radius: 8px;     -moz-border-radius: 8px } .ui-corner-all {     -moz-border-radius: 6px;     -webkit-border-radius: 6px;     border-radius: 6px } IE9 /* Corner radius */ .ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { border- ...
今天在读取xml文件进行排序时,报了一个很奇怪的问题,把处理结果记录如下: InputStream in = new FileInputStream("D:/news_02120101_0212010102.xml");             Reader reader = new InputStreamReader(in, "utf-8");             SAX ...
1.jee命名空间 xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd" 2.spring context 添加配置   方法1.    <jee:jndi-lookup id="dbDataSource"    jndi-name= ...
Global site tag (gtag.js) - Google Analytics