摘要: 点击查看代码 ```plaintext create table tb( id int comment 'ID', username varchar(20) comment '用户名', name varchar(10) comment '姓名', age int comment '年龄', gen 阅读全文
posted @ 2025-03-16 02:34 mooncage 阅读(15) 评论(0) 推荐(0)
摘要: 三层架构 IOC DI 注意: 阅读全文
posted @ 2025-03-15 21:47 mooncage 阅读(10) 评论(0) 推荐(0)
摘要: 不便管理,难以维护 统一响应结果: 实战案例: 点击查看代码 ```plaintext @RestController public class emp { @RequestMapping("/listEmp") public Result list() { //加载解析emp.xml文件 Stri 阅读全文
posted @ 2025-03-15 16:50 mooncage 阅读(27) 评论(0) 推荐(0)
摘要: apipost插件,用于测试 1. 简单参数 通过request手动获取请求参数: @RestController public class easy { @RequestMapping("/easyget") public String easyget(HttpServletRequest req 阅读全文
posted @ 2025-03-15 02:32 mooncage 阅读(29) 评论(0) 推荐(0)
摘要: springboot内嵌 入门程序: 在web开发环境中集成了tomcat 阅读全文
posted @ 2025-03-14 19:06 mooncage 阅读(8) 评论(0) 推荐(0)
摘要: 头和体空行; GET具体体现:在请求路径之后+ ? + k=value (&) 实现; 状态码分类: 常见状态码: 响应头分类: 阅读全文
posted @ 2025-03-14 18:41 mooncage 阅读(28) 评论(0) 推荐(0)
摘要: package com.study.maven.java_web.hello; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation. 阅读全文
posted @ 2025-03-14 17:51 mooncage 阅读(10) 评论(0) 推荐(0)