随笔分类 - java——spring boot
摘要: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-04 23:32
小白龙白龙马
摘要: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-04 23:14
小白龙白龙马
摘要: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-04 22:58
小白龙白龙马
摘要: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-04 22:20
小白龙白龙马
摘要: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-04 21:51
小白龙白龙马
摘要: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-03 23:32
小白龙白龙马
摘要: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-03 23:09
小白龙白龙马
摘要: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-03 22:51
小白龙白龙马
摘要: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-03 22:32
小白龙白龙马
摘要:mapper文件: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mappe
阅读全文
posted @ 2023-01-03 21:58
小白龙白龙马
摘要:pom文件保持不变: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-insta
阅读全文
posted @ 2023-01-03 21:42
小白龙白龙马
摘要:总体步骤按照如下: 第二步——修改pom文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XM
阅读全文
posted @ 2023-01-02 11:50
小白龙白龙马
摘要:第二步——修改pom.xml文件: pom文件: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X
阅读全文
posted @ 2023-01-02 10:21
小白龙白龙马
摘要:配置文件: spring.main.banner-mode = off test.environment = read config by environment obj.sname=chenheng obj.sage=88 #设定日志的默认级别为info logging.level.root=in
阅读全文
posted @ 2023-01-01 22:46
小白龙白龙马
摘要:package org.example.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.PropertySourc
阅读全文
posted @ 2023-01-01 22:00
小白龙白龙马
摘要:配置文件: 创建映射文件: package org.example.pojo; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereot
阅读全文
posted @ 2023-01-01 21:20
小白龙白龙马
摘要:读取数据并显示: package org.example.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.Req
阅读全文
posted @ 2023-01-01 18:15
小白龙白龙马
摘要:代码: package org.example.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; im
阅读全文
posted @ 2023-01-01 18:04
小白龙白龙马
摘要:===================================================================
阅读全文
posted @ 2023-01-01 16:50
小白龙白龙马
摘要:======================================================================================
阅读全文
posted @ 2023-01-01 16:38
小白龙白龙马

浙公网安备 33010602011771号