spring
见哥敬礼
这个作者很懒,什么都没留下…
展开
-
SpringBoot 实现定时任务的两种方式
一、基于注解(@Scheduled)的简单定时器package com.example.schedule.SimpleSchedule;import org.springframework.scheduling.annotation.Scheduled;import java.time.LocalDateTime;/** * @fileName:Schedule * @createTime:2019/5/14 17:16 * @author: * @version: * @descr原创 2022-03-09 15:46:53 · 1348 阅读 · 0 评论 -
多数据源导致自动转换驼峰标识没有生效
SpringBoot中mybatis配置mybatis.configuration.map-underscore-to-camel-case=true没有生效#开启驼峰法mybatis.configuration.map-underscore-to-camel-case=true使用该配置可以让mybatis自动将SQL中查出来的带下划线的字段,转换为驼峰标志,再去匹配类中的属性。如数据库字段为user_name,转换为驼峰标志,再去匹配类中的属性userName。查找原因:原来是项目转载 2021-06-29 16:44:09 · 1243 阅读 · 0 评论 -
物理分页及内存分页
package com.chinaamc.common.utils;import com.github.pagehelper.Page;import org.springframework.util.CollectionUtils;import java.util.ArrayList;import java.util.List;/** * @author hy * @description: * @date 2020/11/12 */public class PageHelperU原创 2021-04-01 18:35:06 · 760 阅读 · 0 评论 -
springboot整合springSecurity
springboot整合springSecuritypom.xmlmysql 表用户,角色基础信息开启提供基于web的Security配置配置UserDetailsServiceapplication.propertiescontroller 测试代码pom.xml <dependency> <groupId>org.springframework.boot</groupId> <artifactId原创 2020-09-07 11:33:47 · 165 阅读 · 0 评论