- 博客(7)
- 收藏
- 关注
原创 若依框架更改数据库为SqlLite
注意: date_string_format=yyyy-MM-dd HH:mm:ss 必须添加否则有时会导致查询是报错。2.1、 修改初始化时校验是否连接成功查询。4.2修改mapper。
2023-10-24 14:25:40
1330
原创 mybatis-plus 中的page分页已有的list
public class PageListUtils { /** * 分页函数 * @param currentPage 当前页数 * @param pageSize 每一页的数据条数 * @param list 要进行分页的数据列表 * @return 当前页要展示的数据 */ public Page getPages(Integer currentPage, Integer pageSize, List list) {...
2022-05-18 17:55:59
2131
原创 The valid characters are defined in RFC 7230 and RFC 3986
post提交时,报错:The valid characters are defined in RFC 7230 and RFC 3986需要转义{}对应的%7B%7D,[]对应%5B%5D。要想不转义,需要添加一个配置类:package com.yiyanweb.config;import org.apache.catalina.connector.Connector;import org.springframework.boot.web.embedded.tomcat.Tomcat
2022-04-26 11:22:03
527
原创 Implicit conversion from data type varbinary to datetime2 is not allowed.
自定义mapper插入数据报错:Implicit conversion from data type varbinary to datetime2 is not allowed.解决方案:在插入具体字段的时候,去指定明确的数据类型:#{item,jdbcType=TIMESTAMP}
2022-04-26 11:04:43
2089
翻译 springboot常见注解解析
springboot中的常用注解有:1、@SpringBootApplication这个注解是Spring Boot最核心的注解,用在 Spring Boot的主类上,标识这是一个 Spring Boot 应用,用来开启 Spring Boot 的各项能力。实际上这个注解是@Configuration,@EnableAutoConfiguration,@ComponentScan三个注解的组合。由于这些注解一般都是一起使用,所以Spring Boot提供了一个统一的注解@SpringBootAppl
2021-01-05 16:42:05
161
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人