Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
fd031cba
提交
fd031cba
编写于
7月 28, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
分布式事务引入由boot改为config
上级
b396bb23
变更
8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
86 行增加
和
29 行删除
+86
-29
%APP%Application.java.ftl
...ava/%SYS_PKGPATH%/%APP_PKGPATH%/%APP%Application.java.ftl
+0
-1
DevBootApplication.java.ftl
...t/src/main/java/%SYS_PKGPATH%/DevBootApplication.java.ftl
+0
-1
pom.xml.ftl
SLN/%PUBPRJ%-core/pom.xml.ftl
+23
-0
%DE%ExService.java.ftl
...S_PKGPATH%/core/extensions/service/%DE%ExService.java.ftl
+10
-1
pom.xml.ftl
SLN/%PUBPRJ%-dependencies/pom.xml.ftl
+25
-25
%SYS%%API%Application.java.ftl
..._PKGPATH%/%SYSAPI_PKGPATH%/%SYS%%API%Application.java.ftl
+0
-1
%API%AutoConfiguration.java.ftl
...%/%SYSAPI_PKGPATH%/config/%API%AutoConfiguration.java.ftl
+4
-0
pom.xml.ftl
SLN/%PUBPRJ%-provider/pom.xml.ftl
+24
-0
未找到文件。
SLN/%PUBPRJ%-app/%PUBPRJ%-app-%APP_PKGPATH%/src/main/java/%SYS_PKGPATH%/%APP_PKGPATH%/%APP%Application.java.ftl
浏览文件 @
fd031cba
...
@@ -27,7 +27,6 @@ import java.util.List;
...
@@ -27,7 +27,6 @@ import java.util.List;
@
Slf4j
@
Slf4j
@
Import
({
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
FeignClientsConfiguration
.
class
FeignClientsConfiguration
.
class
})
})
@
EnableDiscoveryClient
@
EnableDiscoveryClient
...
...
SLN/%PUBPRJ%-boot/src/main/java/%SYS_PKGPATH%/DevBootApplication.java.ftl
浏览文件 @
fd031cba
...
@@ -53,7 +53,6 @@ import java.util.List;
...
@@ -53,7 +53,6 @@ import java.util.List;
//
}
//
}
)
)
@
Import
({
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
})
})
@
EnableAsync
@
EnableAsync
...
...
SLN/%PUBPRJ%-core/pom.xml.ftl
浏览文件 @
fd031cba
...
@@ -101,6 +101,29 @@ TARGET=PSSYSTEM
...
@@ -101,6 +101,29 @@ TARGET=PSSYSTEM
<artifactId>jobs-spring-boot-starter</artifactId>
<artifactId>jobs-spring-boot-starter</artifactId>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<exclusions>
<exclusion>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
<properties>
<properties>
...
...
SLN/%PUBPRJ%-core/src/main/java/%SYS_PKGPATH%/core/extensions/service/%DE%ExService.java.ftl
浏览文件 @
fd031cba
...
@@ -54,7 +54,7 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
...
@@ -54,7 +54,7 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
*
@
return
*
@
return
*/
*/
@
Override
@
Override
@
Transactional
<@
transactionalAnno
deaction
/>
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
public
${
item
.
getCodeName
()}
${
srfmethodname
(
deaction
.
getCodeName
())}(${
item
.
getCodeName
()}
et
)
{
return
super
.${
srfmethodname
(
deaction
.
getCodeName
())}(
et
);
return
super
.${
srfmethodname
(
deaction
.
getCodeName
())}(
et
);
}
}
...
@@ -170,4 +170,13 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
...
@@ -170,4 +170,13 @@ public class ${item.codeName}ExService extends ${item.codeName}ServiceImpl {
</#
if
>
</#
if
>
</#
macro
>
</#
macro
>
<#
comment
>
事务注解
</#
comment
>
<#
macro
transactionalAnno
deaction
>
<#
if
deaction
.
getUserTag
??
&&
deaction
.
getUserTag
()??
&&
deaction
.
getUserTag
()=
'GlobalTransactional'
>
@
GlobalTransactional
<#
else
>
@
Transactional
</#
if
>
</#
macro
>
SLN/%PUBPRJ%-dependencies/pom.xml.ftl
浏览文件 @
fd031cba
...
@@ -300,6 +300,31 @@ TARGET=PSSYSTEM
...
@@ -300,6 +300,31 @@ TARGET=PSSYSTEM
<version>${r'${baomidou-jobs.version}'}</version>
<version>${r'${baomidou-jobs.version}'}</version>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<version>${r'${alibaba-seata.version}'}</version>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<version> ${r'${spring-cloud-alibaba.version}'}</version>
<exclusions>
<exclusion>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
...
@@ -395,31 +420,6 @@ TARGET=PSSYSTEM
...
@@ -395,31 +420,6 @@ TARGET=PSSYSTEM
</dependency>
</dependency>
</#if>
</#if>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<version>${r'${alibaba-seata.version}'}</version>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<version> ${r'${spring-cloud-alibaba.version}'}</version>
<exclusions>
<exclusion>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/%SYS%%API%Application.java.ftl
浏览文件 @
fd031cba
...
@@ -57,7 +57,6 @@ import java.util.List;
...
@@ -57,7 +57,6 @@ import java.util.List;
</#
if
>
</#
if
>
})
})
@
Import
({
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
})
})
@
EnableFeignClients
(
basePackages
=
{
"${pub.getPKGCodeName()}"
})
@
EnableFeignClients
(
basePackages
=
{
"${pub.getPKGCodeName()}"
})
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/config/%API%AutoConfiguration.java.ftl
浏览文件 @
fd031cba
...
@@ -16,7 +16,11 @@ import org.springframework.web.servlet.DispatcherServlet;
...
@@ -16,7 +16,11 @@ import org.springframework.web.servlet.DispatcherServlet;
import
org
.
springframework
.
scheduling
.
concurrent
.
ThreadPoolTaskExecutor
;
import
org
.
springframework
.
scheduling
.
concurrent
.
ThreadPoolTaskExecutor
;
import
java
.
util
.
concurrent
.
Executor
;
import
java
.
util
.
concurrent
.
Executor
;
import
java
.
util
.
concurrent
.
ThreadPoolExecutor
;
import
java
.
util
.
concurrent
.
ThreadPoolExecutor
;
import
org
.
springframework
.
context
.
annotation
.
Import
;
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
})
@
Configuration
@
Configuration
@
ConditionalOnClass
(${
item
.
codeName
}
RestConfiguration
.
class
)
@
ConditionalOnClass
(${
item
.
codeName
}
RestConfiguration
.
class
)
@
ConditionalOnWebApplication
@
ConditionalOnWebApplication
...
...
SLN/%PUBPRJ%-provider/pom.xml.ftl
浏览文件 @
fd031cba
...
@@ -32,6 +32,30 @@ TARGET=PSSYSTEM
...
@@ -32,6 +32,30 @@ TARGET=PSSYSTEM
<artifactId>javax.servlet-api</artifactId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
<scope>provided</scope>
</dependency>
</dependency>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-seata</artifactId>
<exclusions>
<exclusion>
<groupId>io.seata</groupId>
<artifactId>seata-spring-boot-starter</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录