Sakura

sakura

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页

2020年10月21日 #

摘要: hibernate 比较不好的一点 就是全表映射, 比如不好定制 sql, 把表中的所有字段都 select 出来,增加网络开销 和 序列化的开销,增加了 CPU 的操作 使用 hibernate 不需要 写 sql,屏蔽了 sql, 不利于 调优 项目日志导入: <project xmlns="h 阅读全文
posted @ 2020-10-21 17:37 .geek 阅读(65) 评论(0) 推荐(0) 编辑

2020年10月20日 #

摘要: 1. /** * Initialize the given bean instance, applying factory callbacks * as well as init methods and bean post processors. * <p>Called from {@link #c 阅读全文
posted @ 2020-10-20 20:27 .geek 阅读(320) 评论(0) 推荐(0) 编辑

摘要: 配置 factories 文件,然后 让 spring 去扫描到 阅读全文
posted @ 2020-10-20 20:03 .geek 阅读(270) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2020-10-20 17:19 .geek 阅读(73) 评论(0) 推荐(0) 编辑

摘要: 1. 总结: 不要 加上 @EnableWebMvc 这样 springboot 自动加上 的 静态资源处理会失效 2. 如何自定义 404 响应页面 springboot 默认页面 视图解析器 自定义异常处理 以上做法是错误的 阅读全文
posted @ 2020-10-20 16:15 .geek 阅读(80) 评论(0) 推荐(0) 编辑

摘要: Springboot autoconfigure 这个东西是专门 用来定义默认配置的 点进去 查看一下 WebMvcAutoConfiguration.java 凡是有 webjars/** 的请求,都会被导入到 resources/webjars 路径里去 阅读全文
posted @ 2020-10-20 15:47 .geek 阅读(72) 评论(0) 推荐(0) 编辑

摘要: @Component public class AppBeanPostProcessor implements BeanPostProcessor { @Override public Object postProcessBeforeInitialization(Object bean, Strin 阅读全文
posted @ 2020-10-20 15:10 .geek 阅读(72) 评论(0) 推荐(0) 编辑

2020年10月15日 #

摘要: shell 编程入门 1. 系统环境变量 1. 全局配置文件 /etc/profile /etc/profile.d/*.sh /etc/bashrc 2. 个人配置文件 当前用户 /.bash_profile 当前用户 /.bashrc shell 环境变量分离: 在 linux系统中,环境变量按 阅读全文
posted @ 2020-10-15 22:10 .geek 阅读(80) 评论(0) 推荐(0) 编辑

摘要: /** * 获取登录信息 * @param url 输入的 url * @return */ @GetMapping("/ouath/url") public Result<?> jumpToApp(@RequestParam(defaultValue = "",required = false) 阅读全文
posted @ 2020-10-15 11:17 .geek 阅读(266) 评论(0) 推荐(0) 编辑

2020年10月12日 #

摘要: <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %highlight(%-5level) [%X{_traceId}] [%15.15(%thread)] %cyan(%-40.40(%logger{40})) : %msg%n</pattern> package top. 阅读全文
posted @ 2020-10-12 20:22 .geek 阅读(141) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页