![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springboot
汒箫
小白
展开
-
2020-9-9 springboot-thymeleaf
提示:springBoot默认的支持的模版是Thymeleaf,因此使用起来Thtymeleaf相比较于其他的方式会简单一点 文章目录前言一、Controller二、Service+Dao运行时总结 前言 提示:这里可以添加本文要记录的大概内容: 例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。 提示:以下是本篇文章正文内容,下面案例可供参考 一、Controller Controller在springboot自己编写的部分中是第原创 2020-09-09 21:37:27 · 145 阅读 · 0 评论 -
2020-09-05 springboot-restful
1. 创建工程,导入依赖,配置数据库等连接(application.properties中) mybatis-spring-boot-starter:1.3.2 mysql-connector-java: 8.0以上(mysql是8.0以上) 2. JDBC连接mysql出现时区错误:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized… 解决方法:将时区更改为现在所在时区(东八区),我选择永久性改变: set global time_zon原创 2020-09-05 17:35:40 · 109 阅读 · 0 评论 -
2020-09-03 springboot-config
Springboot 学习笔记 @RestController = @Controller+@ResponseBody :按照内容返回 默认类中的方法都会以json的格式返回 从配置文件中注入 @Value("${ipWhiteList}") 值注入 @PropertySource(value = “classpath:ipconfig.properties”)//配置文件路径 在resource目录下 //@PropertySource(value = “file:ipconfig.proferti原创 2020-09-04 22:08:58 · 147 阅读 · 0 评论