Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
T
TrainSys
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
苏州培训方案
TrainSys
提交
82670f1f
提交
82670f1f
编写于
1月 13, 2023
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码 [TrainSys,网页端]
上级
47d3d50c
变更
9
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
18 行增加
和
211 行删除
+18
-211
pom.xml
pom.xml
+4
-2
pom.xml
trainsys-core/pom.xml
+3
-81
ISystemRuntime.java
...main/java/cn/ibizlab/trainsys/runtime/ISystemRuntime.java
+2
-3
SystemRuntimeBase.java
...n/java/cn/ibizlab/trainsys/runtime/SystemRuntimeBase.java
+0
-4
pom.xml
trainsys-provider/pom.xml
+5
-35
trainsys-provider-trainsys.yaml
...-provider/src/main/docker/trainsys-provider-trainsys.yaml
+1
-1
application-sys.yml
trainsys-provider/src/main/resources/application-sys.yml
+1
-77
application.yml
trainsys-provider/src/main/resources/application.yml
+2
-1
servicehub.yml
trainsys-provider/src/main/resources/servicehub.yml
+0
-7
未找到文件。
pom.xml
浏览文件 @
82670f1f
...
...
@@ -25,10 +25,11 @@
</modules>
<properties>
<ibiz.cloud.version>
8.1.0.243
</ibiz.cloud.version>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<maven.deploy.skip>
false
</maven.deploy.skip>
<ibiz.cloud.version>
8.1.0.252
</ibiz.cloud.version>
</properties>
<dependencies>
<dependency>
...
...
@@ -66,6 +67,7 @@
<artifactId>
ibiz-plugin-liquibase
</artifactId>
<version>
${ibiz.cloud.version}
</version>
</dependency>
</dependencies>
...
...
trainsys-core/pom.xml
浏览文件 @
82670f1f
...
...
@@ -14,93 +14,15 @@
<description>
Trainsys Core
</description>
<dependencies>
<!-- Liquibase -->
<dependency>
<groupId>
org.liquibase
</groupId>
<artifactId>
liquibase-core
</artifactId>
<version>
3.9.0
</version>
</dependency>
<!-- H2 -->
<dependency>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<version>
1.4.200
</version>
</dependency>
</dependencies>
<properties>
<maven.build.timestamp.format>
yyyyMMddHHmmss
</maven.build.timestamp.format>
<maven-jar-plugin.version>
2.6
</maven-jar-plugin.version>
</properties>
<profiles>
<profile>
<id>
diff
</id>
<build>
<plugins>
<plugin>
<groupId>
org.liquibase
</groupId>
<artifactId>
liquibase-maven-plugin
</artifactId>
<version>
${liquibase.version}
</version>
<executions>
<execution>
<id>
prepare-newdb
</id>
<configuration>
<changeLogFile>
${project.basedir}/src/main/resources/liquibase/h2_table.xml
</changeLogFile>
<driver>
org.h2.Driver
</driver>
<url>
jdbc:h2:file:${project.build.directory}/db/new;MODE=mysql
</url>
<username>
root
</username>
<dropFirst>
true
</dropFirst>
</configuration>
<phase>
process-resources
</phase>
<goals>
<goal>
update
</goal>
</goals>
</execution>
<execution>
<id>
prepare-olddb
</id>
<configuration>
<changeLogFile>
${project.basedir}/src/main/resources/liquibase/master_table.xml
</changeLogFile>
<driver>
org.h2.Driver
</driver>
<url>
jdbc:h2:file:${project.build.directory}/db/last;MODE=mysql
</url>
<username>
root
</username>
<dropFirst>
true
</dropFirst>
</configuration>
<phase>
process-resources
</phase>
<goals>
<goal>
update
</goal>
</goals>
</execution>
<execution>
<id>
make-diff
</id>
<configuration>
<changeLogFile>
${project.basedir}/src/main/resources/liquibase/changelog/empty.xml
</changeLogFile>
<diffChangeLogFile>
${project.basedir}/src/main/resources/liquibase/changelog/${maven.build.timestamp}_changelog.xml
</diffChangeLogFile>
<driver>
org.h2.Driver
</driver>
<url>
jdbc:h2:file:${project.build.directory}/db/last;MODE=mysql
</url>
<username>
root
</username>
<password></password>
<referenceUrl>
jdbc:h2:file:${project.build.directory}/db/new;MODE=mysql
</referenceUrl>
<referenceDriver>
org.h2.Driver
</referenceDriver>
<referenceUsername>
root
</referenceUsername>
<verbose>
true
</verbose>
<logging>
debug
</logging>
<contexts>
!test
</contexts>
<diffExcludeObjects>
Index:.*,table:ibzfile,ibzuser,ibzdataaudit,ibzcfg,IBZFILE,IBZUSER,IBZDATAAUDIT,IBZCFG
</diffExcludeObjects>
</configuration>
<phase>
process-resources
</phase>
<goals>
<goal>
diff
</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
trainsys-core/src/main/java/cn/ibizlab/trainsys/runtime/ISystemRuntime.java
浏览文件 @
82670f1f
...
...
@@ -3,8 +3,7 @@ package cn.ibizlab.trainsys.runtime;
import
net.ibizsys.central.cloud.core.IServiceSystemRuntime
;
public
interface
ISystemRuntime
extends
IServiceSystemRuntime
{
}
}
trainsys-core/src/main/java/cn/ibizlab/trainsys/runtime/SystemRuntimeBase.java
浏览文件 @
82670f1f
...
...
@@ -23,9 +23,5 @@ public class SystemRuntimeBase extends ServiceSystemRuntime implements ISystemRu
return
psModelServiceImpl
;
}
@Override
protected
ISysUtilRuntime
createDefaultSysUtilRuntime
(
IPSSysUtil
iPSSysUtil
)
{
return
super
.
createDefaultSysUtilRuntime
(
iPSSysUtil
);
}
}
trainsys-provider/pom.xml
浏览文件 @
82670f1f
...
...
@@ -10,10 +10,8 @@
<version>
1.0.0.0
</version>
</parent>
<groupId>
cn.ibizlab.trainsys
</groupId>
<artifactId>
trainsys-provider
</artifactId>
<version>
1.0.0.0
</version>
<dependencies>
<dependency>
<groupId>
cn.ibizlab.trainsys
</groupId>
...
...
@@ -28,7 +26,8 @@
</dependency>
</dependencies>
<properties>
<properties>
<maven-jar-plugin.version>
2.6
</maven-jar-plugin.version>
<docker.image.prefix>
registry.cn-shanghai.aliyuncs.com/ibizsys
</docker.image.prefix>
</properties>
...
...
@@ -70,7 +69,7 @@
<version>
0.4.13
</version>
<configuration>
<serverId>
ibiz-dev
</serverId>
<imageName>
dstimage
</imageName>
<imageName>
${docker.image.prefix}/${project.artifactId}:latest
</imageName>
<dockerDirectory>
${project.basedir}/src/main/docker
</dockerDirectory>
<resources>
<resource>
...
...
@@ -107,7 +106,7 @@
<argument>
--platform
</argument>
<argument>
linux/amd64,linux/arm64
</argument>
<argument>
-t
</argument>
<argument>
dstimage
</argument>
<argument>
${docker.image.prefix}/${project.artifactId}:latest
</argument>
<argument>
${project.basedir}/src/main/docker
</argument>
<argument>
--push
</argument>
</arguments>
...
...
@@ -115,35 +114,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-resources-plugin
</artifactId>
<version>
3.2.0
</version>
<executions>
<execution>
<id>
copy-model
</id>
<phase>
process-sources
</phase>
<goals>
<goal>
copy-resources
</goal>
</goals>
<configuration>
<encoding>
UTF-8
</encoding>
<!-- 输出目录 -->
<outputDirectory>
${project.build.outputDirectory}/model--23D878A4-E43A-41F7-8D72-6C24B47945F9--1
</outputDirectory>
<resources>
<resource>
<!-- 资源目录 -->
<directory>
${project.basedir}/../model
</directory>
<includes>
<include>
**/**
</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
...
...
trainsys-provider/src/main/docker/trainsys-provider-trainsys.yaml
浏览文件 @
82670f1f
version
:
"
3.2"
services
:
trainsys-provider
:
image
:
dstimage
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/trainsys-provider:latest
ports
:
-
"
8081:8081"
networks
:
...
...
trainsys-provider/src/main/resources/application-sys.yml
浏览文件 @
82670f1f
...
...
@@ -2,22 +2,6 @@
spring
:
jackson
:
time-zone
:
GMT+8
cache
:
redis
:
time-to-live
:
72000
caffeine
:
spec
:
initialCapacity=5,maximumSize=500,expireAfterWrite=72000s
redis
:
host
:
172.16.240.110
port
:
6379
password
:
database
:
0
lettuce
:
pool
:
max-active
:
32
max-wait
:
300ms
max-idle
:
16
min-idle
:
8
servlet
:
multipart
:
max-file-size
:
100MB
...
...
@@ -30,25 +14,6 @@ spring:
isSyncDBSchema
:
false
defaultSchema
:
a_LAB01_d23cc850e
dynamic
:
druid
:
#以下是全局默认值,可以全局更改
filters
:
stat,wall,log4j2
#配置初始化大小/最小/最大
initial-size
:
1
min-idle
:
1
max-active
:
20
#获取连接等待超时时间
max-wait
:
60000
#间隔多久进行一次检测,检测需要关闭的空闲连接
time-between-eviction-runs-millis
:
60000
#一个连接在池中最小生存的时间
min-evictable-idle-time-millis
:
300000
validation-query
:
SELECT 1 FROM DUAL
test-while-idle
:
true
test-on-borrow
:
false
test-on-return
:
false
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements
:
false
max-pool-prepared-statement-per-connection-size
:
20
datasource
:
master
:
username
:
${spring.datasource.username}
...
...
@@ -58,7 +23,6 @@ spring:
#启动是否加载liquibase构建表结构
liquibase
:
enabled
:
false
change-log
:
classpath:liquibase/master_table.xml
# Mybatis-plus配置
mybatis-plus
:
...
...
@@ -75,54 +39,14 @@ mybatis-plus:
map-underscore-to-camel-case
:
false
type-handlers-package
:
net.ibizsys.central.plugin.mybatisplus.spring.typehandler
# 阿里sentinel熔断器
feign
:
httpclient
:
enabled
:
true
sentinel
:
enabled
:
true
compression
:
request
:
enabled
:
true
mime-types
:
application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
min-response-size
:
10240
response
:
enabled
:
true
#zuul网关超时设置
ribbon
:
ReadTimeout
:
60000
ConnectTimeout
:
60000
#Log配置
logging
:
level
:
net.ibizsys.central.database.mybatis
:
INFO
org.springframework.boot.autoconfigure
:
ERROR
#系统是否开启权限验证、是否开启缓存
#缓存级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2)
ibiz
:
db
:
batchsize
:
2000
auth
:
excludesPattern
:
/v7/login,/uaa/login,/uaa/loginbyusername,/uaa/casproxylogin
enablePermissionValid
:
true
cacheLevel
:
L2
#(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
deploysystems
:
-
deploysystemobj
:
cn.ibizlab.trainsys.core.runtime.SystemRuntime
deploysystemid
:
TrainSys
# fromjar: false
# modelpath: model
fromjar
:
true
modelpath
:
model--23D878A4-E43A-41F7-8D72-6C24B47945F9--1
db
:
master
# jobs:
# admin-address: http://127.0.0.1:40005
# app-name: TrainSys
# app-port: 9999
# app-ip: 127.0.0.1
### 启用Gzip压缩
server
:
...
...
trainsys-provider/src/main/resources/application.yml
浏览文件 @
82670f1f
...
...
@@ -32,4 +32,5 @@ logging:
level
:
net.ibizsys.central.cloud
:
debug
net.ibizsys.central
:
debug
net.ibizsys.runtime
:
debug
\ No newline at end of file
net.ibizsys.runtime
:
debug
cn.ibizlab.trainsys
:
debug
\ No newline at end of file
trainsys-provider/src/main/resources/servicehub.yml
浏览文件 @
82670f1f
...
...
@@ -4,13 +4,6 @@ fontfolder: /usr/share/fonts
deploysystems
:
-
gateway
-
trainsys
datasources
:
trainsys__default
:
username
:
a_LAB01_d23cc850e
password
:
'
f9Df4556'
url
:
jdbc:mysql://172.16.186.185:3306/a_LAB01_d23cc850e?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&serverTimezone=Asia/Shanghai&allowMultiQueries=true&serverTimezone=GMT%2B8&useSSL=false
driver-class-name
:
com.mysql.jdbc.Driver
dbtype
:
MYSQL5
systemsettings
:
cloudclientutil
:
serviceurl
:
lb://ebsx-oldapi
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录