调整项目依赖

master
linlei 2024-05-28 16:16:43 +08:00
parent 8dba510e03
commit b451fa633b
5 changed files with 22 additions and 42 deletions

41
pom.xml
View File

@ -14,8 +14,9 @@
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<java.version>11</java.version> <java.version>11</java.version>
<spring.version>5.3.10</spring.version> <spring.version>5.2.15.RELEASE</spring.version>
<mysql.version>8.0.30</mysql.version> <mysql.version>8.0.30</mysql.version>
<spring.boot.version>2.3.12.RELEASE</spring.boot.version>
</properties> </properties>
<modules> <modules>
@ -39,39 +40,19 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-context</artifactId> <artifactId>spring-boot-starter-web</artifactId>
<version>${spring.version}</version> <version>${spring.boot.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-aspects</artifactId> <artifactId>spring-boot-starter-aop</artifactId>
<version>${spring.version}</version> <version>${spring.boot.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-aop</artifactId> <artifactId>spring-boot-starter-jdbc</artifactId>
<version>${spring.version}</version> <version>${spring.boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -7,15 +7,8 @@
<groupId>com.xcs.spring</groupId> <groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.1-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-aware-applicationStartupAware</artifactId> <artifactId>spring-aware-applicationStartupAware</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.5.5</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -26,4 +26,12 @@
<module>spring-transaction-transactionInterceptor</module> <module>spring-transaction-transactionInterceptor</module>
</modules> </modules>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
</dependencies>
</project> </project>

View File

@ -10,8 +10,7 @@ public class ScoresServiceImpl implements ScoresService {
readOnly = true, readOnly = true,
rollbackFor = Exception.class, rollbackFor = Exception.class,
isolation = Isolation.REPEATABLE_READ, isolation = Isolation.REPEATABLE_READ,
timeout = 30, timeout = 30
label = {"tx1", "tx2"}
) )
public void insertScore() { public void insertScore() {
// TODO // TODO

View File

@ -10,8 +10,7 @@ public class ScoresServiceImpl implements ScoresService {
readOnly = true, readOnly = true,
rollbackFor = Exception.class, rollbackFor = Exception.class,
isolation = Isolation.REPEATABLE_READ, isolation = Isolation.REPEATABLE_READ,
timeout = 30, timeout = 30
label = {"tx1", "tx2"}
) )
public void insertScore() { public void insertScore() {
// TODO // TODO