![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
开发教程
weixin_47734621
这个作者很懒,什么都没留下…
展开
-
idea整合SSM
1.创建Maven项目2.补全项目结构3.导入jar包和所需的插件<?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-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http:/原创 2021-07-05 23:07:10 · 116 阅读 · 0 评论 -
Thymeleaf的常见用法
1.th:inline=“javascript”th:inline="javascript"这是Thymeleaf中的内联写法,支持在javascript访问model中的数据,所以以后想写[[${xxx.xxx}]]这样写法的时候一定要记得在script中写上th:inline=“javascript”<script type="text/javascript" th:inline="javascript"> function focus(gid){ $.ajax( {原创 2021-07-01 17:24:40 · 726 阅读 · 0 评论 -
使用注解将时间格式化
我们以前常用的时间格式化方法是:import java.text.SimpleDateFormat;import java.util.Date; public class Main{ public static void main(String[] args){ Date date = new Date(); String strDateFormat = "yyyy-MM-dd HH:mm:ss";//指定格式化的格式 SimpleDateFo原创 2021-06-26 12:51:52 · 406 阅读 · 0 评论 -
Spring boot整合mybatis
使用.xml配置的方式整合步骤:1、创建Mapper接口文件,在主程序添加包扫描2、创建XML映射文件:编写对应的SQL语句3、在全局文件中配置XML映射文件路径4、在.yml中配置数据库spring: datasource: type: com.alibaba.druid.pool.DruidDataSource #使用druid连接池 url: jdbc:mysql://localhost:3306/school?characterEncoding=utf8原创 2021-06-25 01:11:57 · 69 阅读 · 0 评论 -
spring boot使用配置文件注入属性值
配置文件有两种格式:.properties和.yml我这里用.yml示范1.使用@ConfigurationProperties注解先在配置文件写好要注入的属性值创建对应的实体类测试运行结果2.使用@Value注解写好配置文件创建实体类运行结果两种注解的比较...原创 2021-06-24 16:26:52 · 46 阅读 · 0 评论