SpringBoot
SpringBoot整合
靓码农
新生代农民工
展开
-
SpringBoot & JSON 整合
<?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 https://maven.apache.org/xsd/maven-4.0.0原创 2022-04-08 22:45:12 · 652 阅读 · 0 评论 -
SpringBoot & Hibernate Validator 整合
SpringBoot整合Hibernate validator校验框架作用:将验证逻辑与业务逻辑之间进行了分离,降低了程序耦合度1.引入jar包 <dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator</artifactId> <vers原创 2022-04-05 19:12:14 · 1178 阅读 · 1 评论 -
SpringBoot & 线程池 整合
Spring Boot 线程池的运用创建线程池将对象交给Spring进行管理@Configuration@EnableAsyncpublic class ExecutePoolTask { @Bean public Executor myTaskAsyncPool() { ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setC原创 2022-04-05 19:04:33 · 1309 阅读 · 0 评论 -
SpringBoot & SpringTask & 线程池 整合 以及 @Scheduled 注解源码分析
SpringBoot & SpringTaskSpring 自带定时任务 @Scheduled 在线Cron表达式 https://cron.qqe2.com/1.@Scheduled参数运用2.单线程测试3.多线程测试4.@Scheduled(cron = "${demo.cron}") 占位符格式测试5.源码分析导入依赖<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.原创 2022-04-03 00:52:23 · 2185 阅读 · 0 评论 -
SpringBoot & SpringCache & Redis 整合
SpringBoot & SpringCache & Redis 整合单体项目,缓存技术步骤1.导入依赖<?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="原创 2022-04-01 03:08:52 · 2441 阅读 · 0 评论 -
SpringBoot & bootstrap.yml 整合
SpringBoot & bootstrap.yml 整合1.导入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId> <version>2.2.5.RELEASE</version&g原创 2022-04-01 01:36:06 · 2700 阅读 · 1 评论 -
SpringBoot & Swagger2 整合
SpringBoot & Swagger2 整合步骤1.导入依赖<?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/PO原创 2022-04-01 01:26:28 · 1560 阅读 · 0 评论 -
SpringBoot & MybatisPlus 整合
SpringBoot & MybatisPlus 整合步骤1.导入依赖<?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原创 2022-04-01 00:31:04 · 1633 阅读 · 0 评论 -
SpringBoot & TK & PageHelper 整合
SpringBoot & PagHelper 整合步骤1.导入依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <ja原创 2022-03-31 08:05:27 · 2010 阅读 · 1 评论 -
SpringBoot & JPA 整合
SpringBoot & JPA 整合步骤1.引入依赖 <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8&原创 2022-03-31 07:54:34 · 1559 阅读 · 0 评论 -
SpringBoot & Mybatis 整合
SpirngBoot & Mybatis 整合步骤1.引入对应依赖 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8&原创 2022-03-31 07:41:43 · 1523 阅读 · 0 评论 -
SpringAOP & Mybatis-plus & SpringBoot 整合
SpringAOP & Mybatis-plus & SpringBoot 整合依赖 <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.11.4</version&g原创 2022-03-28 00:56:10 · 2113 阅读 · 0 评论 -
SpringBoot入门
HelloWorld & SpringBoot启动类package com.xkcoding.helloworld;import cn.hutool.core.util.StrUtil;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.原创 2022-03-27 21:21:28 · 1517 阅读 · 0 评论