Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz4j Spring R7
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7后台标准模板
iBiz4j Spring R7
提交
14b889e0
提交
14b889e0
编写于
7月 29, 2020
作者:
zhouweidong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
补充事务开关
上级
c2ba94d7
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
13 行增加
和
2 行删除
+13
-2
DevBootAutoConfiguration.java.ftl
...va/%SYS_PKGPATH%/config/DevBootAutoConfiguration.java.ftl
+3
-2
pom.xml.ftl
SLN/%PUBPRJ%-core/pom.xml.ftl
+2
-0
pom.xml.ftl
SLN/%PUBPRJ%-dependencies/pom.xml.ftl
+2
-0
%API%AutoConfiguration.java.ftl
...%/%SYSAPI_PKGPATH%/config/%API%AutoConfiguration.java.ftl
+2
-0
pom.xml.ftl
SLN/%PUBPRJ%-provider/pom.xml.ftl
+2
-0
application-sys.yml.ftl
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
+2
-0
未找到文件。
SLN/%PUBPRJ%-boot/src/main/java/%SYS_PKGPATH%/config/DevBootAutoConfiguration.java.ftl
浏览文件 @
14b889e0
...
...
@@ -3,12 +3,13 @@ TARGET=PSSYSTEM
</#
ibiztemplate
>
package
${
pub
.
getPKGCodeName
()}.
config
;
import
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
;
import
org
.
springframework
.
context
.
annotation
.
Configuration
;
import
org
.
springframework
.
context
.
annotation
.
Import
;
@
Configuration
@
Import
({
SeataFeignClientAutoConfiguration
.
class
})
<#
if
pub
.
isEnableGlobalTransaction
??
&&
pub
.
isEnableGlobalTransaction
()??
&&
pub
.
isEnableGlobalTransaction
()==
true
>
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
})
</#
if
>
public
class
DevBootAutoConfiguration
{
}
SLN/%PUBPRJ%-core/pom.xml.ftl
浏览文件 @
14b889e0
...
...
@@ -101,6 +101,7 @@ TARGET=PSSYSTEM
<artifactId>jobs-spring-boot-starter</artifactId>
</dependency>
<#if pub.isEnableGlobalTransaction?? && pub.isEnableGlobalTransaction()?? && pub.isEnableGlobalTransaction()==true>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
...
...
@@ -123,6 +124,7 @@ TARGET=PSSYSTEM
</exclusion>
</exclusions>
</dependency>
</#if>
</dependencies>
...
...
SLN/%PUBPRJ%-dependencies/pom.xml.ftl
浏览文件 @
14b889e0
...
...
@@ -300,6 +300,7 @@ TARGET=PSSYSTEM
<version>${r'${baomidou-jobs.version}'}</version>
</dependency>
<#if pub.isEnableGlobalTransaction?? && pub.isEnableGlobalTransaction()?? && pub.isEnableGlobalTransaction()==true>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
...
...
@@ -324,6 +325,7 @@ TARGET=PSSYSTEM
</exclusion>
</exclusions>
</dependency>
</#if>
</dependencies>
</dependencyManagement>
...
...
SLN/%PUBPRJ%-provider/%PUBPRJ%-provider-%SYSAPI_PKGPATH%/src/main/java/%SYS_PKGPATH%/%SYSAPI_PKGPATH%/config/%API%AutoConfiguration.java.ftl
浏览文件 @
14b889e0
...
...
@@ -18,9 +18,11 @@ import java.util.concurrent.Executor;
import
java
.
util
.
concurrent
.
ThreadPoolExecutor
;
import
org
.
springframework
.
context
.
annotation
.
Import
;
<#
if
pub
.
isEnableGlobalTransaction
??
&&
pub
.
isEnableGlobalTransaction
()??
&&
pub
.
isEnableGlobalTransaction
()==
true
>
@
Import
({
com
.
alibaba
.
cloud
.
seata
.
feign
.
SeataFeignClientAutoConfiguration
.
class
,
})
</#
if
>
@
Configuration
@
ConditionalOnClass
(${
item
.
codeName
}
RestConfiguration
.
class
)
@
ConditionalOnWebApplication
...
...
SLN/%PUBPRJ%-provider/pom.xml.ftl
浏览文件 @
14b889e0
...
...
@@ -33,6 +33,7 @@ TARGET=PSSYSTEM
<scope>provided</scope>
</dependency>
<#if pub.isEnableGlobalTransaction?? && pub.isEnableGlobalTransaction()?? && pub.isEnableGlobalTransaction()==true>
<!-- 阿里seata分布式事务 -->
<dependency>
<groupId>io.seata</groupId>
...
...
@@ -55,6 +56,7 @@ TARGET=PSSYSTEM
</exclusion>
</exclusions>
</dependency>
</#if>
</dependencies>
...
...
SLN/%PUBPRJ%-util/src/main/resources/application-sys.yml.ftl
浏览文件 @
14b889e0
...
...
@@ -295,6 +295,7 @@ server:
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
min-response-size: 10240
<#if pub.isEnableGlobalTransaction?? && pub.isEnableGlobalTransaction()?? && pub.isEnableGlobalTransaction()==true>
seata:
enabled: ${seataEnable} #是否开启全局事务
application-id: ${sys.getName()} #服务标识
...
...
@@ -311,6 +312,7 @@ seata:
namespace: ${nacosNamespace} #服务命名空间
userName: "${nacosUserName}" #用户名
password: "${nacosPassWord}" #密码
</#if>
<#macro singleDatasourceConfig>
datasource:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录