2017年9月18日

摘要: private CorsConfiguration buildConfig(){ CorsConfiguration config = new CorsConfiguration(); config.addAllowedOrigin("*"); config.addAllowedHeader("*"); ... 阅读全文
posted @ 2017-09-18 10:57 胡琴 阅读(1828) 评论(0) 推荐(0) 编辑

2017年9月1日

摘要: @RestController 这个注解相当于同时添加@Controller和@ResponseBody注解。 @Valid Controller层使用校验: public String userAdd(@Valid("ValidUserBean") ValidUserBean validUserB 阅读全文
posted @ 2017-09-01 14:19 胡琴 阅读(258) 评论(0) 推荐(0) 编辑
 
摘要: junit junit test org.springframework.boot spring-boot-starter-aop ... 阅读全文
posted @ 2017-09-01 11:59 胡琴 阅读(1885) 评论(0) 推荐(0) 编辑
 
摘要: package com.huij; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.... 阅读全文
posted @ 2017-09-01 11:15 胡琴 阅读(558) 评论(0) 推荐(0) 编辑

2017年6月6日

摘要: OpenEntityManagerInView org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter OpenEntityManagerInView /* 阅读全文
posted @ 2017-06-06 10:05 胡琴 阅读(333) 评论(2) 推荐(2) 编辑

2017年6月3日

摘要: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 *.action 阅读全文
posted @ 2017-06-03 17:56 胡琴 阅读(474) 评论(0) 推荐(0) 编辑
 
摘要: shiroFilter org.springframework.web.filter.DelegatingFilterProxy shiroFilter /* 阅读全文
posted @ 2017-06-03 17:55 胡琴 阅读(1679) 评论(0) 推荐(0) 编辑
 
摘要: CXFService org.apache.cxf.transport.servlet.CXFServlet 1 CXFServlet /services/* 阅读全文
posted @ 2017-06-03 17:54 胡琴 阅读(889) 评论(0) 推荐(0) 编辑
 
摘要: <!-- spring配置文件位置 --> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml</param-value> </con 阅读全文
posted @ 2017-06-03 17:52 胡琴 阅读(646) 评论(0) 推荐(0) 编辑
 
摘要: <?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 阅读全文
posted @ 2017-06-03 17:47 胡琴 阅读(690) 评论(0) 推荐(0) 编辑