会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dengjp
博客园
首页
新随笔
联系
订阅
管理
2022年12月13日
@ControllerAdvice注解的使用
摘要: ControllerAdvice注解打在类上面,为使用了@ExceptionHandler、@InitBinder、@ModelAttribute注解的方法所在类服务的。@ControllerAdvice可以指定需要拦截的Controller,拦截下来具体要做什么可以自动实现,比如请求响应数据加解密
阅读全文
posted @ 2022-12-13 17:32 如履薄地
阅读(23)
评论(0)
推荐(0)
2022年8月29日
加签
摘要: public static String toHexString(byte[] b) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < b.length; i++) { //& 0x0F 取出后四位 sb.append(HexUt
阅读全文
posted @ 2022-08-29 16:45 如履薄地
阅读(66)
评论(0)
推荐(0)