spring boot 2.5.2

This commit is contained in:
thinkgem
2021-06-28 10:30:32 +08:00
parent f871d2886a
commit 507fdf5ef0
5 changed files with 8 additions and 15 deletions

View File

@@ -53,7 +53,7 @@ jdbc:
# 设置连接属性,可获取到表的 remark (备注)
remarksReporting: false
# JTA 分布式事务,建议启用多数据源的时候开启v4.0.4+
# JTA XA 事务v4.0.4+
jta:
enabled: false

View File

@@ -42,7 +42,6 @@ import ${packageName}.${moduleName}.entity${isNotEmpty(subModuleName)?'.'+subMod
import ${packageName}.${moduleName}.dao${isNotEmpty(subModuleName)?'.'+subModuleName:''}.${@StringUtils.cap(child.className)}Dao;
<% } %>
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import io.seata.spring.annotation.GlobalTransactional;
/**
@@ -126,7 +125,6 @@ public class ${ClassName}Service extends ${table.isTreeEntity?'Tree':'Crud'}Serv
* @param ${className}
*/
@Override
@LcnTransaction
@GlobalTransactional
@Transactional(readOnly=false)
public void save(${ClassName} ${className}) {
@@ -205,7 +203,6 @@ public class ${ClassName}Service extends ${table.isTreeEntity?'Tree':'Crud'}Serv
* @param ${className}
*/
@Override
@LcnTransaction
@GlobalTransactional
@Transactional(readOnly=false)
public void updateStatus(${ClassName} ${className}) {
@@ -217,7 +214,6 @@ public class ${ClassName}Service extends ${table.isTreeEntity?'Tree':'Crud'}Serv
* @param ${className}
*/
@Override
@LcnTransaction
@GlobalTransactional
@Transactional(readOnly=false)
public void delete(${ClassName} ${className}) {

View File

@@ -62,11 +62,6 @@
</dependency> -->
<!-- 分布式事务
<dependency>
<groupId>com.jeesite</groupId>
<artifactId>jeesite-cloud-module-txlcn-client</artifactId>
<version>\${project.parent.version}</version>
</dependency>
<dependency>
<groupId>com.jeesite</groupId>
<artifactId>jeesite-cloud-module-seata-client</artifactId>