过滤器 ;spring拦截器 切片 小结
摘要:1. springMVc的拦截器 3.使用拦截器,检测每个方法的执行时间 4 过滤器 实现耗时 5. 切片 的使用 实现 耗时
阅读全文
posted @
2018-06-16 16:58
lshan
阅读(217)
推荐(0) 编辑
Spring 配置 web.xml (防止spring 内存溢出)
摘要:<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd" > <web-app> <display-name>
阅读全文
posted @
2018-06-13 18:24
lshan
阅读(197)
推荐(0) 编辑
spring 注解 @NotBlank and BingResult
摘要:@NotEmpty用在集合类上面 @NotBlank 用在String上面 @NotNull 用在基本类型上 在 user对象中需要
阅读全文
posted @
2018-04-22 17:54
lshan
阅读(294)
推荐(0) 编辑
spring mvc 解决json 不能转换的问题
摘要:在要转的实体上加一个 @JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" }) @JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handl
阅读全文
posted @
2018-04-13 18:37
lshan
阅读(324)
推荐(0) 编辑
sssp maven pom
摘要:pom <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.o
阅读全文
posted @
2018-04-11 23:19
lshan
阅读(373)
推荐(0) 编辑
spring中 的MD5 加密
摘要://对密码进行加密(不需要使用其他Md5工具 。spring中有 在digestUtils) String password = DigestUtils.md5DigestAsHex(user.getPassword().getBytes()); user.setPassword(password)
阅读全文
posted @
2018-04-10 23:52
lshan
阅读(382)
推荐(0) 编辑
spring mvc 表单标签
摘要:http://elim.iteye.com/blog/1807330
阅读全文
posted @
2018-04-10 14:39
lshan
阅读(91)
推荐(0) 编辑
配置文件 .properties 的使用。
摘要:在代码中使用 @Controller public class IndexController { @Value("${CONTENT_LUNBO_ID}") private Long CONTENT_LUNBO_ID; @Autowired private ContentService conte
阅读全文
posted @
2018-04-07 11:50
lshan
阅读(137)
推荐(0) 编辑
apo 简单参考
摘要:参考: https://www.cnblogs.com/Geyoung/p/6927905.html @Aspect @Component public class TimeAspect { //通过这种方法可以拿到对象中所有的方法,对象 @Around("execution(* com.imooc
阅读全文
posted @
2018-04-01 21:41
lshan
阅读(127)
推荐(0) 编辑