会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
曾鸿发
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
27
下一页
2021年11月24日
SpringBoot集成SpringSecurity前后端分离、Session会话控制
摘要: https://blog.csdn.net/xinshengdelei/article/details/115344709
阅读全文
posted @ 2021-11-24 12:24 君莫笑我十年游
阅读(248)
评论(0)
推荐(0)
2021年11月9日
axios.defaults.withCredentials = true 前端跨域传递Cookie设置
摘要: 后端设置了跨域请求之后,前端也要做相应设置 @CrossOrigin(origins = "*",allowedHeaders = "*",methods = {},allowCredentials = "true") 参考地址:https://blog.csdn.net/xiaoyuer_2020
阅读全文
posted @ 2021-11-09 10:06 君莫笑我十年游
阅读(517)
评论(0)
推荐(0)
2021年10月10日
druid和druid-spring-boot-starter 的区别
摘要: 今天建项目的时候,使用springboot整合druid的时候启动报错: springboot项目中提示报错Cannot resolve configuration property 'spring.datasource.xxxx' 然后我就网上搜索资料,可以参考: https://www.cnbl
阅读全文
posted @ 2021-10-10 18:03 君莫笑我十年游
阅读(2181)
评论(0)
推荐(0)
AOP@Before,@After,@AfterReturning,@AfterThrowing执行顺序
摘要: 根据需要在切入点不同位置的切入内容: 使用@Before在切入点开始处切入内容 使用@After在切入点结尾处切入内容 使用@AfterReturning在切入点return内容之后切入内容(可以用来对处理返回值做一些加工处理) 使用@Around在切入点前后切入内容,并自己控制何时执行切入点自身的
阅读全文
posted @ 2021-10-10 08:39 君莫笑我十年游
阅读(782)
评论(0)
推荐(0)
2021年9月1日
IDEA 背景插件下载
摘要: https://plugins.jetbrains.com/search?isPaid=false&tags=Theme
阅读全文
posted @ 2021-09-01 18:39 君莫笑我十年游
阅读(136)
评论(0)
推荐(0)
GitHub不再支持密码验证解决方案:SSH免密与Token登录配置
摘要: https://blog.csdn.net/weixin_41010198/article/details/119698015 https://cloud.tencent.com/developer/article/1861466
阅读全文
posted @ 2021-09-01 15:04 君莫笑我十年游
阅读(121)
评论(0)
推荐(0)
2021年7月26日
关于Java访问SQL server的错误:The server selected protocol version TLS10 is not accepted by client preferences [TLS12]及安全套接字层(SSL)加密与 SQL Server 建立安全连接
摘要: 参考链接: https://www.cnblogs.com/ykbb/p/14975938.html https://blog.csdn.net/qq_19383145/article/details/118943367 修改一下jre/lib/security/java.security中的一个配
阅读全文
posted @ 2021-07-26 12:21 君莫笑我十年游
阅读(590)
评论(0)
推荐(0)
2021年7月21日
java中使用反射获取pojo(实体)类的全部字段值
摘要: 参考链接一: java中使用反射获取pojo(实体)类的全部字段值 https://www.cnblogs.com/wzjhoutai/p/7190348.html
阅读全文
posted @ 2021-07-21 09:17 君莫笑我十年游
阅读(228)
评论(0)
推荐(0)
websocket
摘要: 参考链接一: SpringBoot集成WebSocket实现简易版微信 https://blog.csdn.net/songzehao/article/details/105038856 参考链接二: websocket调用数据库报错 https://blog.csdn.net/zgc55987/a
阅读全文
posted @ 2021-07-21 09:10 君莫笑我十年游
阅读(80)
评论(0)
推荐(0)
2021年7月19日
response 响应流返回 header 返回 Content-Disposition ,前端拿不到
摘要: 默认情况下,header只有六种 simple response headers (简单响应首部)可以暴露给外部: Cache-ControlContent-LanguageContent-TypeExpiresLast-ModifiedPragma这里的暴露给外部,意思是让客户端可以访问得到,既可
阅读全文
posted @ 2021-07-19 11:45 君莫笑我十年游
阅读(3455)
评论(0)
推荐(0)
2021年7月16日
SQL Server 数据库恢复bak文件
摘要: 一开始连sql server 的数据库备份和恢复是什么意思都不知道,后来百度了解了一下。然后进行了一番实操,后来恢复了。在这里记录一下我恢复的过程。 首先我是按照之前的数据库去恢复,一开始的数据库名称叫 FTTM,然后我打开 Microsoft SQL Server Management Studi
阅读全文
posted @ 2021-07-16 10:49 君莫笑我十年游
阅读(1090)
评论(0)
推荐(0)
2021年6月26日
InterlliJ Debug方式启动:method breakpoints may dramatically show down debugging
摘要: 使用idea在DEBUG的时候出现Method breakpoints may dramatically slow down debugging, 如图: 根据语义可能是断点打在方法上面了,导致在某个断点卡住了。 重启服务器和重启idea已然无解。 打开Breakpoints面板看看,(快捷键:Ct
阅读全文
posted @ 2021-06-26 09:49 君莫笑我十年游
阅读(92)
评论(0)
推荐(0)
2021年6月12日
MybatiPlus的BaseMapper和IService详解
摘要: 下面这篇博客,很详细,基于源码: https://my.oschina.net/u/4933191/blog/4896611 下面这篇博客基于案例,生动: https://www.cnblogs.com/code-duck/p/13433809.html 常用方法: https://www.cnbl
阅读全文
posted @ 2021-06-12 11:25 君莫笑我十年游
阅读(819)
评论(0)
推荐(0)
2021年6月10日
ThreadLocal
摘要: https://www.jianshu.com/p/3c5d7f09dfbd
阅读全文
posted @ 2021-06-10 21:50 君莫笑我十年游
阅读(30)
评论(0)
推荐(0)
2021年6月8日
lombok-@Accessors注解
摘要: lombok.assessors.chain=[true|false](default:false)如果设置为true,没有任何类被@Accessors注解,或者有类被注解但是没有为chain参数显式赋值,则表现为@Accessors(chain=true) chain 一个布尔值。如果为真,产生的
阅读全文
posted @ 2021-06-08 22:03 君莫笑我十年游
阅读(132)
评论(0)
推荐(0)
@RequiredArgsConstructor(onConstructor =@_(@Autowired))代替@AutoWired注解
摘要: 在我们写controller或者Service层的时候,需要注入很多的mapper接口或者另外的service接口,这时候就会写很多的@AutoWired注解,代码看起来很乱lombok提供了一个注解: @RequiredArgsConstructor(onConstructor =@_(@Auto
阅读全文
posted @ 2021-06-08 21:58 君莫笑我十年游
阅读(2525)
评论(0)
推荐(0)
static LocalDateTime ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset)
摘要: https://iowiki.com/javatime/javatime_localdatetime_ofepochsecond.html
阅读全文
posted @ 2021-06-08 21:55 君莫笑我十年游
阅读(145)
评论(0)
推荐(0)
@Pointcut的表达式-@annotation
摘要: 可以参考@Transtactional的具体实现。 限制连接点的匹配,其中连接点的主题(在 Spring AOP 中执行的方法)具有给定的 annotation。 官方案例: 任何连接点(仅在 Spring AOP 中执行方法),其中执行方法具有@Transactional annotation:
阅读全文
posted @ 2021-06-08 13:37 君莫笑我十年游
阅读(1285)
评论(0)
推荐(0)
SpringAOP里JoinPoint常用方法总结
摘要: @Before("customerJoinPointerExpression()") public void beforeMethod(JoinPoint joinPoint){ joinPoint.getSignature().getName(); // 获取目标方法名 joinPoint.get
阅读全文
posted @ 2021-06-08 13:33 君莫笑我十年游
阅读(2061)
评论(0)
推荐(1)
2021年6月7日
Hutool工具
摘要: 参考:https://blog.csdn.net/qq_42981242/article/details/110939210 个人感觉这个工具还是十分使用的。
阅读全文
posted @ 2021-06-07 18:12 君莫笑我十年游
阅读(47)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
27
下一页
公告