会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
shunWcs
博客园
首页
新随笔
联系
订阅
管理
2025年9月10日
83、SpringMVC全局异常处理和数据校验
摘要: 1、首先定义一个自定义的异常类 @Data public class BizException extends RuntimeException { private Integer code; //业务异常码 private String msg; //业务异常信息 public BizExcept
阅读全文
posted @ 2025-09-10 14:09 shunnWcs
阅读(5)
评论(0)
推荐(0)
2025年9月8日
82、SpringMVC 参数传递,浏览器和服务器之间的数据传输
摘要: package com.atguigu.springmvc.controller; import com.atguigu.springmvc.pojo.Person; import jakarta.servlet.http.HttpServletRequest; import jakarta.ser
阅读全文
posted @ 2025-09-08 16:41 shunnWcs
阅读(4)
评论(0)
推荐(0)
2024年12月14日
81、docker compose 安装常用的软件
摘要: 1、docker compose 安装Redis version: '3.8' services: redis: image: redis:latest # 使用 Redis 最新版本的镜像 container_name: redis ports: - "6379:6379" # 映射 Redis
阅读全文
posted @ 2024-12-14 09:51 shunnWcs
阅读(53)
评论(0)
推荐(0)
2024年4月16日
80、SpringBoot3 SpringSecurity Mybatisplus最新版 整合 实现登入权限控制
摘要: 1、导入pom依 SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- -- Table structure for sys_menu -- DROP TABLE IF EXISTS `sys_menu`; CREATE TABLE `sys_menu`
阅读全文
posted @ 2024-04-16 16:15 shunnWcs
阅读(289)
评论(0)
推荐(0)
2023年11月24日
79、Go语言学习
摘要: 1、下载安装:https://studygolang.com/dl 2、配置环境变量:win + i
阅读全文
posted @ 2023-11-24 16:28 shunnWcs
阅读(16)
评论(0)
推荐(0)
2022年8月27日
78、使用Jenkins Docker 部署SpringBoot项目
摘要: 1、centOS 安装Docker 1、更新软件源:yum update 2、卸载旧版本:yum remove docker docker-common docker-selinux docker-engine 3、安装软件包:yum install -y yum-utils device-mapp
阅读全文
posted @ 2022-08-27 09:41 shunnWcs
阅读(395)
评论(0)
推荐(0)
2022年8月24日
77、DozerBeanMapper 的使用
摘要: 1、添加依赖 <dependency> <groupId>net.sf.dozer</groupId> <artifactId>dozer</artifactId> <version>5.5.1</version> </dependency> <dependency> <groupId>net.sf
阅读全文
posted @ 2022-08-24 21:59 shunnWcs
阅读(236)
评论(0)
推荐(0)
2022年8月23日
76、Spring Event 解耦神器的使用
摘要: 1、第一种方式 定义事件,继承 ApplicationEvent 的类成为一个事件类 @ToString public class OrderProductEvent extends ApplicationEvent { /** 该类型事件携带的信息 */ private String orderI
阅读全文
posted @ 2022-08-23 20:48 shunnWcs
阅读(28)
评论(0)
推荐(0)
2022年7月3日
75、Springboot 常用的功能(国际化,异常处理............)
摘要: Springboot 国际化的使用 1.1、在resources类路径下创建i18n 文件夹,然后里面创建 message.properties message_zh_CN.properties message_en_US.properties 资源文件 1.2、在application.yml配置
阅读全文
posted @ 2022-07-03 14:06 shunnWcs
阅读(329)
评论(0)
推荐(0)
2022年5月13日
74、青云搭建服务器、使用Jinkins部署项目
摘要: 在服务器上安装Java、Maven、Git、Docker、Docker-compose、最后安装Jenkins 1、安装Java 1、上传一个JDK的Jar包 2、解压:tar -zxvf jdk-8u152-linux-x64.tar.gz 3、创建Java目录:mkdir -p /usr/loc
阅读全文
posted @ 2022-05-13 20:07 shunnWcs
阅读(170)
评论(0)
推荐(0)
下一页
公告