10 2022 档案

摘要:package com.cj.system.exception; import com.cj.common.result.Result; import org.springframework.web.bind.annotation.ControllerAdvice; import org.sprin 阅读全文
posted @ 2022-10-28 19:13 写代码的小哥哥 阅读(15) 评论(0) 推荐(0) 编辑
摘要:1.添加依赖 <dependency> <groupId>com.github.xiaoymin</groupId> <artifactId>knife4j-spring-boot-starter</artifactId> </dependency> 2.配置类 package com.cj.sys 阅读全文
posted @ 2022-10-28 10:29 写代码的小哥哥 阅读(212) 评论(0) 推荐(0) 编辑
摘要:1.环境搭建 1.1 结构目录 1.2 配置逆向工程 1.2.1 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://w 阅读全文
posted @ 2022-10-25 14:24 写代码的小哥哥 阅读(46) 评论(0) 推荐(0) 编辑
摘要:1.执行流程 阅读全文
posted @ 2022-10-24 15:50 写代码的小哥哥 阅读(14) 评论(0) 推荐(0) 编辑
摘要:1.webinit package com.cj.config; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.filter.CharacterEncoding 阅读全文
posted @ 2022-10-24 15:49 写代码的小哥哥 阅读(181) 评论(0) 推荐(0) 编辑
摘要:1.拦截器作用 拦截控制方法的执行 2.实现 package com.cj.rest.interceptors; import org.springframework.stereotype.Component; import org.springframework.web.servlet.Handl 阅读全文
posted @ 2022-10-24 11:33 写代码的小哥哥 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1.文件结构 2.删除数据 controller层 @RequestMapping(value = "/empoylee/{id}",method = RequestMethod.DELETE) public String delete(@PathVariable("id") Integer id) 阅读全文
posted @ 2022-10-20 12:50 写代码的小哥哥 阅读(39) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示