随笔 - 836  文章 - 1 评论 - 40 阅读 - 102万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  spring

上一页 1 2
过滤器 ;spring拦截器 切片 小结
摘要:1. springMVc的拦截器 3.使用拦截器,检测每个方法的执行时间 4 过滤器 实现耗时 5. 切片 的使用 实现 耗时 阅读全文
posted @ 2018-06-16 16:58 lshan 阅读(217) 评论(0) 推荐(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) 推荐(0) 编辑
解决maven工程 子工程中的一些配置读取进来的问题
摘要:方案:在父工程中手动配置一些节点 阅读全文
posted @ 2018-06-10 22:50 lshan 阅读(235) 评论(0) 推荐(0) 编辑
日志的简单使用
摘要: 阅读全文
posted @ 2018-04-22 22:28 lshan 阅读(139) 评论(0) 推荐(0) 编辑
spring 注解 @NotBlank and BingResult
摘要:@NotEmpty用在集合类上面 @NotBlank 用在String上面 @NotNull 用在基本类型上 在 user对象中需要 阅读全文
posted @ 2018-04-22 17:54 lshan 阅读(294) 评论(0) 推荐(0) 编辑
spring mvc 解决json 不能转换的问题
摘要:在要转的实体上加一个 @JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler" }) @JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handl 阅读全文
posted @ 2018-04-13 18:37 lshan 阅读(324) 评论(0) 推荐(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) 推荐(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) 推荐(0) 编辑
spring mvc 表单标签
摘要:http://elim.iteye.com/blog/1807330 阅读全文
posted @ 2018-04-10 14:39 lshan 阅读(91) 评论(0) 推荐(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) 推荐(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) 推荐(0) 编辑

上一页 1 2
点击右上角即可分享
微信分享提示