摘要: SpringBoot统一返回结果封装和全局异常处理 核心知识 { "code": 200, // 状态码:200成功,500服务异常 "message": "提示信息", // 接口说明/异常文案 "data": null // 业务数据,成功时携带,异常时为null } 具体步骤 1.创建Resu 阅读全文
posted @ 2026-06-29 20:51 Daisy! 阅读(8) 评论(0) 推荐(0)
摘要: MySQL安装、JDBC连接与注册功能 SQL脚本 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;-- 指定字符集为 utf8mb4 USE weitoutiao;-- 进入微头条这个数据库 CREATE TABLE `user` (-- 创建us 阅读全文
posted @ 2026-06-29 20:37 Daisy! 阅读(4) 评论(0) 推荐(0)
摘要: Router 工程代码 <template> <div class="home-container"> <!-- 固定头部 --> <div class="header"> <h2>微头条首页</h2> <button @click="logout">退出登录</button> </div> <!- 阅读全文
posted @ 2026-06-28 22:22 Daisy! 阅读(4) 评论(0) 推荐(0)
摘要: 前端知识讲解及软件Visual Studio Code下载操作 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, init 阅读全文
posted @ 2026-06-28 22:10 Daisy! 阅读(5) 评论(0) 推荐(0)
摘要: 学习制作学生管理系统并从需求、分析、设计、测试四个方面进行答辩 1、 点击查看代码 // 导入ArrayList和Scanner import java.util.ArrayList; import java.util.Scanner; public class Main { // 静态集合:存放所 阅读全文
posted @ 2026-06-04 15:04 Daisy! 阅读(7) 评论(0) 推荐(0)
摘要: 1、 点击查看代码 public class Refrigerator { String brand; String color; double capacity; boolean isOn; public void openDoor(){ System.out.println(color+"的"+ 阅读全文
posted @ 2026-06-04 15:00 Daisy! 阅读(6) 评论(0) 推荐(0)
摘要: 学习下载MarkDown并熟练使用,再下载JDK,进行环境配置,最后下载idea安装包。 代码练习 1、 点击查看代码 import java.util.Scanner; //TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or // 阅读全文
posted @ 2026-06-04 14:43 Daisy! 阅读(9) 评论(0) 推荐(0)