会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小白龙白龙马
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
204
下一页
2023年1月3日
spring boot——spring boot的基本配置——spring boot整合mybatis——本地实例运行——保存操作——void类型
摘要: 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 小白龙白龙马
阅读(40)
评论(0)
推荐(0)
2023年1月2日
spring boot——spring boot的基本配置——spring boot整合mybatis——本地实例运行
摘要: 总体步骤按照如下: 第二步——修改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 小白龙白龙马
阅读(99)
评论(0)
推荐(0)
spring boot——spring boot的基本配置——spring boot整合mybatis——教程
摘要: 第二步——修改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 小白龙白龙马
阅读(169)
评论(0)
推荐(0)
2023年1月1日
spring boot——spring boot的基本配置——日志配置——内置的LogBack
摘要: 配置文件: 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 小白龙白龙马
阅读(75)
评论(0)
推荐(0)
spring boot——读取应用配置——方式四——@PropertySource
摘要: package org.example.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.PropertySourc
阅读全文
posted @ 2023-01-01 22:00 小白龙白龙马
阅读(46)
评论(0)
推荐(0)
spring boot——读取应用配置——方式三——@ConfigurationProperties
摘要: 配置文件: 创建映射文件: package org.example.pojo; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereot
阅读全文
posted @ 2023-01-01 21:20 小白龙白龙马
阅读(78)
评论(0)
推荐(0)
spring boot——读取应用配置——方式二——@Value
摘要: 读取数据并显示: package org.example.controller; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.Req
阅读全文
posted @ 2023-01-01 18:15 小白龙白龙马
阅读(72)
评论(0)
推荐(0)
spring boot——读取应用配置——方式一——Environment
摘要: 代码: package org.example.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.env.Environment; im
阅读全文
posted @ 2023-01-01 18:04 小白龙白龙马
阅读(107)
评论(0)
推荐(0)
spring boot——spring boot的基本配置——spring boot的全局配置文件——设置端口以及web应用的上下文路径
摘要: ===================================================================
阅读全文
posted @ 2023-01-01 16:50 小白龙白龙马
阅读(214)
评论(0)
推荐(0)
spring boot——spring boot的基本配置——关闭Banner
摘要: ======================================================================================
阅读全文
posted @ 2023-01-01 16:38 小白龙白龙马
阅读(176)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
204
下一页