统一定义依赖版本号

This commit is contained in:
click33 2022-10-22 05:48:02 +08:00
parent 7fbec71bf9
commit 54e30e0bed
7 changed files with 20 additions and 9 deletions

View File

@ -42,10 +42,12 @@
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding>
<!-- 统一定义依赖版本号 -->
<springboot.version>2.5.12</springboot.version>
<spring-web.version>5.3.7</spring-web.version>
<reactor-core.version>3.1.4.RELEASE</reactor-core.version>
<jackson-databind.version>2.13.4.1</jackson-databind.version>
<jackson-datatype-jsr310.version>2.11.2</jackson-datatype-jsr310.version>
<servlet-api.version>3.1.0</servlet-api.version>
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<solon.version>1.10.4</solon.version>
@ -58,6 +60,8 @@
<grpc-spring-boot-starter.version>2.10.1.RELEASE</grpc-spring-boot-starter.version>
<hutool-jwt.version>5.8.5</hutool-jwt.version>
<jjwt.version>0.9.1</jjwt.version>
<fastjson.version>1.2.83</fastjson.version>
<fastjson2.version>2.0.15</fastjson2.version>
</properties>
<!-- 仓库信息 -->

View File

@ -64,7 +64,7 @@ public class SaSessionController {
// 复杂存取值 ---- http://localhost:8081/session/getModel
@RequestMapping("getModel")
public SaResult setValue() {
public SaResult getModel() {
// 实例化
SysUser user = new SysUser();
user.setId(10001);

View File

@ -1,12 +1,19 @@
package com.pj.model;
import java.io.Serializable;
/**
* User 实体类
*
* @author kong
* @since 2022-10-15
*/
public class SysUser {
public class SysUser implements Serializable {
/**
*
*/
private static final long serialVersionUID = -2853125262828437774L;
public SysUser() {
}

View File

@ -23,13 +23,13 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.3.3.RELEASE</version>
<version>${springboot.version}</version>
</dependency>
<!-- fastjson -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.83</version>
<version>${fastjson.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -23,13 +23,13 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.3.3.RELEASE</version>
<version>${springboot.version}</version>
</dependency>
<!-- fastjson2 -->
<dependency>
<groupId>com.alibaba.fastjson2</groupId>
<artifactId>fastjson2</artifactId>
<version>2.0.15</version>
<version>${fastjson2.version}</version>
</dependency>
</dependencies>
</project>

View File

@ -27,7 +27,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.3.3.RELEASE</version>
<version>${springboot.version}</version>
</dependency>
<!-- jackson-databind -->
<dependency>
@ -40,7 +40,7 @@
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.11.2</version>
<version>${jackson-datatype-jsr310.version}</version>
<optional>true</optional>
</dependency>
</dependencies>

View File

@ -27,7 +27,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<version>2.3.3.RELEASE</version>
<version>${springboot.version}</version>
</dependency>
</dependencies>