随笔分类 - java——spring boot
摘要:@RequestMapping(value = "/test5") //请求转发 public void test5(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOExcepti
阅读全文
posted @ 2023-01-08 16:59
小白龙白龙马
摘要:
阅读全文
posted @ 2023-01-08 16:39
小白龙白龙马
摘要:getParameter(String name) getParameterValues (String name) getParameterNames() getParameterMap() 代码: package org.example.controller; import org.spring
阅读全文
posted @ 2023-01-08 16:20
小白龙白龙马
摘要:代码: package org.example.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.Rest
阅读全文
posted @ 2023-01-08 15:01
小白龙白龙马
摘要:方式一: 方式二: 本地示例: package org.example.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.ann
阅读全文
posted @ 2023-01-08 14:47
小白龙白龙马
摘要:request原理: request功能: 代码示例: package org.example.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.
阅读全文
posted @ 2023-01-08 14:30
小白龙白龙马
摘要:HTTP概述: HTTP_请求消息_请求行: HTTP消息的结构 先看Request 消息的结构, Request 消息分为3部分: 第一部分叫Request line(请求行); 第二部分叫Request header(请求头); ——————空行———————— 第三部分是body(请求体);
阅读全文
posted @ 2023-01-08 14:02
小白龙白龙马
摘要:https://blog.csdn.net/qq_58168493/article/details/122731122
阅读全文
posted @ 2023-01-07 22:32
小白龙白龙马
摘要:Mybatis中的多表查询之用户与账户(一对多和一对一/多对一) 结果集封装到对象 立即加载与延迟加载 Mybatis表之间关系有三种: 1、 一对一:人和身份证号是一对一 2、 一对多:一个用户和多个订单是一对多 3、 多对一:多个订单和一个用户是多对一(用户角度) 4、 多对多:老师和学生之间是
阅读全文
posted @ 2023-01-07 22:30
小白龙白龙马
摘要:注意: 数据库: CREATE TABLE `user2` ( `id` int , `name` varchar(255) , `age` int ) ; insert into user2( id,name,age ) values ( 41,"wang",25); CREATE TABLE `
阅读全文
posted @ 2023-01-07 22:23
小白龙白龙马
摘要:本地数据库登录: C:\Users\lenovo>cd C:\Program Files\mysql8\mysql-8.0.29-winx64\mysql-8.0.29-winx64\bin C:\Program Files\mysql8\mysql-8.0.29-winx64\mysql-8.0.
阅读全文
posted @ 2023-01-07 19:01
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-07 14:54
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-07 14:17
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-07 13:59
小白龙白龙马
摘要:这种情况下,语句怎么写: pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { retur
阅读全文
posted @ 2023-01-07 13:24
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-07 00:53
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-06 23:47
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-06 23:20
小白龙白龙马
摘要:mapper层: package com.demo.mapper; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; impo
阅读全文
posted @ 2023-01-05 23:26
小白龙白龙马
摘要:pojo类: package org.example.entity; public class MyUser { private int id; private String name; private int age; public int getId() { return id; } publi
阅读全文
posted @ 2023-01-05 23:08
小白龙白龙马

浙公网安备 33010602011771号