Compare commits

...

129 Commits

Author SHA1 Message Date
oyo
7dc36f83dd homestay 2025-11-24 10:02:55 +08:00
oyo
f77282c141 homestay 2025-11-24 10:02:41 +08:00
oyo
74bb71ff96 homestay 2025-11-24 10:02:32 +08:00
oyo
def68e0818 添加 template/.toco/global/global.md 2025-11-20 16:27:47 +08:00
oyo
47c6129c76 添加 template/.toco/plan/plan.md 2025-11-20 16:27:10 +08:00
oyo
2e6c87e576 添加 template/.toco/modeling/modeling.md 2025-11-20 16:26:41 +08:00
oyo
e18e0d5dee 删除 template/.toco/plan/plan.md 2025-11-13 10:43:34 +08:00
oyo
5da7b47bb4 删除 template/.toco/modeling/modeling.md 2025-11-13 10:43:28 +08:00
oyo
8b1b5e5f0b 删除 template/.toco/global/global.md 2025-11-13 10:43:21 +08:00
oyo
a0f9276f46 删除 template/.toco/design/design.md 2025-11-13 10:43:14 +08:00
oyo
6c8159a0bc 删除 template/.toco/coding/coding.md 2025-11-13 10:42:59 +08:00
oyo
a2ab31d6d5 更新 template/.toco/design/design.md 2025-11-11 21:21:15 +08:00
oyo
3b76066be3 更新 template/.toco/design/design.md 2025-11-11 21:18:24 +08:00
oyo
76e43b88a2 更新 template/.toco/design/design.md 2025-11-11 21:17:30 +08:00
oyo
cf009a876b 更新 template/.toco/design/design.md 2025-11-11 20:33:28 +08:00
oyo
4151d83956 更新 template/.toco/global/global.md 2025-11-11 19:56:26 +08:00
oyo
4d8465b123 更新 template/.toco/coding/coding.md 2025-11-11 19:54:41 +08:00
oyo
6e77493617 更新 template/.toco/modeling/modeling.md 2025-11-11 19:42:58 +08:00
oyo
815fb55873 更新 template/.toco/coding/coding.md 2025-11-11 19:39:51 +08:00
oyo
d03ebdcc57 更新 template/.toco/plan/plan.md 2025-11-11 19:39:21 +08:00
oyo
188dd7d6f0 更新 template/.toco/design/design.md 2025-11-11 19:36:43 +08:00
oyo
eb258bea11 更新 template/.toco/design/design.md 2025-11-11 19:34:56 +08:00
oyo
e1d108f879 更新 template/.toco/design/design.md 2025-11-11 19:34:32 +08:00
oyo
7087df8968 更新 template/.toco/coding/coding.md 2025-11-11 19:33:57 +08:00
oyo
22cdfe69c1 更新 template/.toco/global/global.md 2025-11-11 19:23:59 +08:00
oyo
c2fa840624 添加 template/.toco/global/global.md 2025-11-11 19:23:41 +08:00
oyo
3a3776043a 添加 template/.toco/coding/coding.md 2025-11-11 19:19:53 +08:00
oyo
f182e68987 添加 template/.toco/plan/plan.md 2025-11-11 19:19:14 +08:00
oyo
a60cde2621 添加 template/.toco/design/design.md 2025-11-11 19:18:02 +08:00
oyo
f3cd51f118 添加 template/.toco/modeling/modeling.md 2025-11-11 19:16:33 +08:00
oyo
abb94e4f67 删除 template/.toco/plan/plan.md 2025-10-17 14:01:00 +08:00
oyo
c875b0c163 删除 template/.toco/modeling/modeling.md 2025-10-17 14:00:52 +08:00
oyo
0e502a1be9 删除 template/.toco/global/global.md 2025-10-17 14:00:44 +08:00
oyo
fb78f6692e 删除 template/.toco/design/design.md 2025-10-17 14:00:37 +08:00
oyo
e457fc9719 删除 template/.toco/coding/coding.md 2025-10-17 14:00:29 +08:00
oyo
d5954347fb 更新 template/.toco/coding/coding.md 2025-10-15 20:28:00 +08:00
oyo
3f304cd002 更新 template/.toco/coding/coding.md 2025-10-15 20:21:23 +08:00
oyo
5359e65650 更新 template/.toco/coding/coding.md 2025-10-15 20:18:00 +08:00
oyo
0b2abc26f6 更新 template/.toco/coding/coding.md 2025-10-15 19:57:10 +08:00
oyo
e86cd38c89 更新 template/.toco/modeling/modeling.md 2025-10-15 16:38:22 +08:00
oyo
0d6d6379ff 删除 template/.toco/toco/toco.md 2025-10-15 16:15:23 +08:00
oyo
6889769f0f 添加 template/.toco/toco/toco.md 2025-10-15 16:14:03 +08:00
oyo
c8ce30af92 添加 template/.toco/plan/plan.md 2025-10-15 16:13:45 +08:00
oyo
35504f4677 添加 template/.toco/modeling/modeling.md 2025-10-15 16:13:30 +08:00
oyo
f2b9c8d1f5 添加 template/.toco/global/global.md 2025-10-15 16:13:10 +08:00
oyo
f582467a0f 添加 template/.toco/design/design.md 2025-10-15 16:12:42 +08:00
oyo
7cd8fecbc1 添加 template/.toco/coding/coding.md 2025-10-15 16:12:23 +08:00
oyo
46a76dc52e 删除 template/TOCO.md 2025-10-14 11:38:16 +08:00
oyo
75adc8d474 更新 template/.toco/README 2025-10-14 11:36:48 +08:00
oyo
48b1f4696c 添加 template/.toco/README 2025-10-14 11:36:06 +08:00
oyo
751d4ea211 更新 template/.toco/toco/README 2025-10-14 11:21:52 +08:00
oyo
d81dc3a77b 添加 template/.toco/toco/README 2025-10-14 11:20:12 +08:00
oyo
d5481c234f 更新 template/.toco/plan/README 2025-10-14 11:14:08 +08:00
oyo
206620b46b 更新 template/.toco/modeling/README 2025-10-14 11:13:50 +08:00
oyo
d230f235dc 更新 template/.toco/global/README 2025-10-14 11:13:28 +08:00
oyo
6552dfe31c 更新 template/.toco/design/README 2025-10-14 11:13:06 +08:00
oyo
218ccecce6 更新 template/.toco/coding/README 2025-10-14 11:12:17 +08:00
oyo
5c286b0900 更新 template/.toco/plan/README 2025-10-14 11:02:13 +08:00
oyo
7ab055c016 更新 template/.toco/modeling/README 2025-10-14 11:01:51 +08:00
oyo
80e3d33d07 更新 template/.toco/global/README 2025-10-14 11:01:21 +08:00
oyo
06d0503ef6 更新 template/.toco/modeling/README 2025-10-14 11:00:58 +08:00
oyo
37bc7579ad 更新 template/.toco/coding/README 2025-10-14 10:59:41 +08:00
oyo
b41e4b82b2 更新 template/.toco/design/README 2025-10-14 10:59:33 +08:00
oyo
cfc058c268 更新 template/.toco/coding/README 2025-10-14 10:59:15 +08:00
oyo
38eb659749 更新 template/.toco/coding/README 2025-10-14 10:47:57 +08:00
oyo
89f39074bd 更新 template/.toco/design/README 2025-10-14 10:47:50 +08:00
oyo
1092c0b710 更新 template/.toco/global/README 2025-10-14 10:47:44 +08:00
oyo
83a01a99dc 更新 template/.toco/modeling/README 2025-10-14 10:47:36 +08:00
oyo
20af473d61 更新 template/.toco/plan/README 2025-10-14 10:47:26 +08:00
oyo
13683c6990 更新 template/.toco/plan/README 2025-10-14 10:47:11 +08:00
oyo
67de47a0f4 更新 template/.toco/modeling/README 2025-10-14 10:46:20 +08:00
oyo
f85c9830cb 更新 template/.toco/coding/README 2025-10-14 10:45:45 +08:00
oyo
bd8095ce98 更新 template/.toco/global/README 2025-10-14 10:45:29 +08:00
oyo
5e042a898c 更新 template/.toco/coding/README 2025-10-14 10:44:56 +08:00
oyo
a3ed9aa129 更新 template/.toco/design/README 2025-10-14 10:44:46 +08:00
oyo
57bfaabc86 更新 template/.toco/coding/README 2025-10-14 10:44:01 +08:00
oyo
bc4771ac9c 更新 template/.toco/coding/coding.md 2025-10-14 10:43:09 +08:00
oyo
3800797ee8 更新 template/.toco/plan/plan.md 2025-10-14 10:42:27 +08:00
oyo
e9135efc69 更新 template/.toco/modeling/modeling.md 2025-10-14 10:42:15 +08:00
oyo
7a0054c21a 更新 template/.toco/global/global.md 2025-10-14 10:41:59 +08:00
oyo
b40717e148 更新 template/.toco/design/design.md 2025-10-14 10:41:33 +08:00
oyo
27f97b26d2 更新 template/.toco/coding/coding.md 2025-10-14 10:40:39 +08:00
oyo
18de98037d 添加 template/.toco/global/global.md 2025-10-14 10:39:22 +08:00
oyo
38e3fb5cd8 添加 template/.toco/coding/coding.md 2025-10-14 10:37:38 +08:00
oyo
22b66cb2b0 删除 template/.toco/coding/coding.md 2025-10-14 10:37:28 +08:00
oyo
441f696af2 添加 template/.toco/coding/coding.md 2025-10-14 10:37:20 +08:00
oyo
6b41af6717 添加 template/.toco/design/design.md 2025-10-14 10:36:24 +08:00
oyo
a30288d151 添加 template/.toco/plan/plan.md 2025-10-14 10:35:15 +08:00
oyo
c6cba363cd 添加 template/.toco/modeling/modeling.md 2025-10-14 10:34:54 +08:00
oyo
08d2e3f5df 更新 template/common/pom.xml 2025-09-29 15:17:01 +08:00
oyo
219199ed69 更新 template/pom.xml 2025-09-29 15:16:32 +08:00
oyo
ce4f035583 更新 template/TOCO.md 2025-09-14 13:49:02 +08:00
oyo
1c7cf53ec0 更新 template/TOCO.md 2025-09-08 16:53:58 +08:00
oyo
2aa56d059e 更新 template/TOCO.md 2025-09-03 13:57:22 +08:00
oyo
64b2a78add 更新 template/TOCO.md 2025-09-02 14:25:11 +08:00
oyo
c3f33f6a94 更新 template/TOCO.md 2025-09-01 20:03:48 +08:00
oyo
b04b11beca 更新 template/TOCO.md 2025-09-01 16:05:35 +08:00
oyo
5a8e4da5a3 更新 template/TOCO.md 2025-09-01 16:02:21 +08:00
oyo
33dd98f157 更新 template/TOCO.md 2025-09-01 13:10:17 +08:00
oyo
3db0bf8bcc 更新 template/TOCO.md 2025-09-01 12:11:21 +08:00
oyo
b868dbc393 更新 template/TOCO.md 2025-09-01 11:07:36 +08:00
oyo
5938c0b20f 更新 template/TOCO.md 2025-09-01 11:04:31 +08:00
oyo
4097acc7ca 更新 template/TOCO.md 2025-09-01 10:29:44 +08:00
oyo
d53db5dff0 更新 template/entrance/web/src/main/resources/application-local.properties 2025-08-29 11:45:44 +08:00
oyo
68470b84fa 更新 template/entrance/web/src/main/resources/application.properties 2025-08-29 11:45:34 +08:00
oyo
3aa2d11963 更新 template/entrance/web/src/main/resources/application.properties 2025-08-29 11:09:56 +08:00
oyo
2667b8c00c 更新 template/TOCO.md 2025-08-26 19:15:03 +08:00
oyo
628ce032b3 添加 template/toco.md 2025-08-22 16:01:34 +08:00
oyo
c7f31e959d 添加 template/entrance/web/src/main/java/{{.packagePath}}/entrance/web/config/SSLConfig.java 2025-07-25 15:37:20 +08:00
oyo
8d1988a876 更新 template/.gitignore 2025-07-25 15:35:48 +08:00
d29c2e9eb1 Update template/pom.xml 2025-06-18 14:53:55 +08:00
28a0ed18e2 Update template/.gitignore 2025-06-12 16:12:49 +08:00
b2fecf3e65 Update template/.gitignore 2025-04-24 15:38:17 +08:00
oyo
3e3717c439 增加mybatis配置 2025-02-12 16:04:23 +08:00
9176af36ac Update template/pom.xml 2025-02-11 17:23:40 +08:00
ycl
aa123c7011 更新 template/entrance/web/src/main/java/{{.packagePath}}/entrance/web/AppApplication.java 2025-01-23 09:53:24 +08:00
ycl
3b05af3d39 更新 template/pom.xml 2025-01-22 18:08:35 +08:00
ycl
614588fad0 更新 template/entrance/web/pom.xml 2025-01-21 18:40:38 +08:00
ycl
60aacff318 更新 template/pom.xml
支持达梦数据库
2025-01-17 17:12:02 +08:00
ycl
ccbba1080f 更新 template/pom.xml 2025-01-17 15:20:15 +08:00
ycl
4747bd16f8 更新 template/pom.xml
支持达梦数据库
2025-01-17 10:41:17 +08:00
ycl
e63bccc234 更新 template/entrance/web/src/main/resources/application-online.properties
支持达梦数据库
2025-01-17 10:33:41 +08:00
ycl
dfb3ffbba5 更新 template/entrance/web/src/main/resources/application-remote.properties
支持达梦
2025-01-17 10:31:44 +08:00
ycl
90af82628d 更新 template/entrance/web/src/main/resources/application-local.properties
支持dm数据库
2025-01-17 10:29:28 +08:00
841d5eb030 Update template/pom.xml 2025-01-09 14:34:11 +08:00
7523df202b Update template/.gitignore 2024-12-31 18:37:12 +08:00
ycl
7c62f05efd 更新 template/entrance/web/src/main/resources/application.properties
#注销掉es的默认装配
2024-12-26 10:06:29 +08:00
6723418300 add script execute permission 2024-12-05 13:18:57 +08:00
12d01ba7fb Update template/Dockerfile 2024-12-05 10:09:25 +08:00
22 changed files with 166 additions and 50 deletions

10
template/.gitignore vendored
View File

@@ -10,7 +10,8 @@ classes/
## idea ## idea
*.iml *.iml
.idea/** .idea/*
!.idea/codeStyles/
!.idea/dataSources.xml !.idea/dataSources.xml
HELP.md HELP.md
@@ -32,3 +33,10 @@ logs/
!modules/.gitkeep !modules/.gitkeep
.gitattributes .gitattributes
.toco/config.local.yml .toco/config.local.yml
.fslckout
_FOSSIL_
_FOSSIL_-journal
.fslckout
.fslckout-journal
*.pem

8
template/.toco/README Normal file
View File

@@ -0,0 +1,8 @@
目录用于存放rules只支持.md文件。
global: 目录用于存放所有agent通用rules
toco: 目录用于存放Toco Agent专用rules用于外层流程整体控制
modeling:目录用于存放Modeling Agent专用rules用于领域建模阶段
plan: 目录用于存放Plan Agent专用rules用于整体规划阶段
design:目录用于存放Design Agent专用rules用于TOCO设计元素设计
coding:目录用于存放Coding Agent专用rules用于编码阶段

View File

@@ -0,0 +1 @@
目录用于存放Coding Agent专用rules用于编码阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Design Agent专用rules用于TOCO设计元素设计只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放所有agent通用rules只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Modeling Agent专用rules用于领域建模阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Plan Agent专用rules用于整体规划阶段只支持.md文件

View File

@@ -0,0 +1 @@
目录用于存放Toco Agent专用rules用于外层流程整体控制只支持.md文件

View File

@@ -1,4 +1,4 @@
FROM maven:3.8.8 as builder FROM maven:3.8.8 AS builder
WORKDIR source WORKDIR source
COPY ./ ./ COPY ./ ./
ARG JAR_FILE=entrance/web/target/*.jar ARG JAR_FILE=entrance/web/target/*.jar

View File

@@ -63,6 +63,11 @@
<artifactId>rocketmq-client</artifactId> <artifactId>rocketmq-client</artifactId>
</dependency> </dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.apache.tomcat.embed</groupId> <groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId> <artifactId>tomcat-embed-core</artifactId>

View File

@@ -20,21 +20,6 @@
<artifactId>{{ .artifactId }}-entrance-mq</artifactId> <artifactId>{{ .artifactId }}-entrance-mq</artifactId>
<version>{{ .version }}</version> <version>{{ .version }}</version>
</dependency> </dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>vs-mock-web</artifactId>
<version>${vs.mock.spring}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>vs-debug-agent</artifactId>
<version>${vs.debug.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>vs-debug-plugin</artifactId>
<version>${vs.debug.version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View File

@@ -1,16 +1,9 @@
package {{ .package }}.entrance.web; package {{ .package }}.entrance.web;
import com.vs.debug.stack.agent.LogStackContextInvokeRecorder;
import com.vs.debug.stack.agent.MethodVisitorHandlerFilter;
import com.vs.debug.stack.agent.StackContextInvokeRecorder;
import com.vs.debug.stack.config.EnableVSReplayConfiguration;
import com.vs.sqlmapper.spring.DataSourceConfig; import com.vs.sqlmapper.spring.DataSourceConfig;
import com.vs.sqlmapper.spring.scan.VSDaoBeanScan; import com.vs.sqlmapper.spring.scan.VSDaoBeanScan;
import com.vs.mock.config.EnableVSMockConfiguration;
import com.vs.sqlmapper.spring.express.EnableVSMockExpress;
import com.vs.agent.TocoAgentInitializer; import com.vs.agent.TocoAgentInitializer;
import org.mybatis.spring.annotation.MapperScan; import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -20,23 +13,9 @@ import org.springframework.context.annotation.Import;
@SpringBootApplication(scanBasePackages = {"{{.groupId}}", "com.vs"}) @SpringBootApplication(scanBasePackages = {"{{.groupId}}", "com.vs"})
@VSDaoBeanScan(basePackages = {"com.vs","{{.groupId}}"}) @VSDaoBeanScan(basePackages = {"com.vs","{{.groupId}}"})
@Import(DataSourceConfig.class) @Import(DataSourceConfig.class)
@EnableVSReplayConfiguration @MapperScan("{{.groupId}}.**.persist.mapper.mybatis")
@EnableVSMockConfiguration
@EnableVSMockExpress
@MapperScan("自定义mapper包")
public class AppApplication{ public class AppApplication{
// @Bean(name = "stackContextInvokeRecorder")
// public StackContextInvokeRecorder createStackContextInvokeRecorder() throws Exception {
// return new LogStackContextInvokeRecorder(); // 可以根据需求扩展实现
// }
@Bean
public MethodVisitorHandlerFilter createMethodVisitorHandlerFilter() {
StackContextInvokeRecorder stackContextInvokeRecorder = new LogStackContextInvokeRecorder();
return new MethodVisitorHandlerFilter(stackContextInvokeRecorder);
}
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication application = new SpringApplication(AppApplication.class); SpringApplication application = new SpringApplication(AppApplication.class);
application.addInitializers(new TocoAgentInitializer()); application.addInitializers(new TocoAgentInitializer());

View File

@@ -0,0 +1,71 @@
package {{ .package }}.entrance.web.config;
import org.apache.catalina.connector.Connector;
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.core.io.ClassPathResource;
import java.io.IOException;
@Configuration
public class SSLConfig {
@Bean
public ServletWebServerFactory servletContainer(Environment env) {
TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
// 禁用自动配置的SSL如果存在
tomcat.setRegisterDefaultServlet(false);
if (hasSslConfig(env)) {
tomcat.addAdditionalTomcatConnectors(createSslConnector(env));
}
return tomcat;
}
private boolean hasSslConfig(Environment env) {
return env.containsProperty("ssl_certificate")
&& env.containsProperty("ssl_certificate-private-key");
}
private Connector createSslConnector(Environment env) {
String certPath = env.getProperty("ssl_certificate");
String keyPath = env.getProperty("ssl_certificate-private-key");
String httpsPort = env.getProperty("server.https.port", "8443");
Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
connector.setScheme("https");
connector.setSecure(true);
connector.setPort(Integer.parseInt(httpsPort));
// 明确设置SSL配置
connector.setProperty("SSLEnabled", "true");
connector.setProperty("sslProtocol", "TLS");
connector.setProperty("clientAuth", "false");
connector.setProperty("sslEnabledProtocols", "TLSv1.2,TLSv1.3");
// 处理证书路径
connector.setProperty("certificateFile", extractFilePath(certPath));
connector.setProperty("certificateKeyFile", extractFilePath(keyPath));
return connector;
}
private String extractFilePath(String classpathResource) {
if (classpathResource == null) return null;
if (classpathResource.startsWith("classpath:")) {
String resource = classpathResource.substring("classpath:".length());
try {
return new ClassPathResource(resource).getFile().getAbsolutePath();
} catch (IOException e) {
throw new RuntimeException("Failed to locate SSL certificate file", e);
}
}
return classpathResource;
}
}

View File

@@ -15,6 +15,8 @@ spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB
spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified
{{- else if eq .dbType "mysql" }} {{- else if eq .dbType "mysql" }}
spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- else if eq .dbType "dm"}}
spring.datasource.url=jdbc:dm://${ .dbHost }/${ .dbPort }/SYSDBA?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- end }} {{- end }}
spring.datasource.username=${DB_USER:hande_test_user} spring.datasource.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5} spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
@@ -31,10 +33,14 @@ hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
{{- else if eq .dbType "oracle" }} {{- else if eq .dbType "oracle" }}
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.show_sql=true
vs.sqlmapper.dialect=oracle vs.sqlmapper.dialect=oracle
vs.sqlmapper.showSql=true {{- else if eq .dbType "dm" }}
spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
hibernate.dialect=org.hibernate.dialect.DmDialect
vs.sqlmapper.dialect=dm
{{- end }} {{- end }}
hibernate.show_sql=true
vs.sqlmapper.showSql=true
spring.datasource.tomcat.max-age=3600000 spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false spring.jpa.open-in-view=false
spring.redis.host=${REDIS_HOST:redis.byteawake.com} spring.redis.host=${REDIS_HOST:redis.byteawake.com}
@@ -122,3 +128,4 @@ liteflow.monitor.enable-log=true
#create default table auto #create default table auto
vs.db.basetable.create=true vs.db.basetable.create=true
server.ssl.enabled=false

View File

@@ -14,6 +14,8 @@ spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB
spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified
{{- else if eq .dbType "mysql" }} {{- else if eq .dbType "mysql" }}
spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- else if eq .dbType "dm"}}
spring.datasource.url=jdbc:dm://${ .dbHost }/${ .dbPort }/SYSDBA?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- end }} {{- end }}
spring.datasource.username=${DB_USER:hande_test_user} spring.datasource.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5} spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
@@ -30,10 +32,14 @@ hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
{{- else if eq .dbType "oracle" }} {{- else if eq .dbType "oracle" }}
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.show_sql=true
vs.sqlmapper.dialect=oracle vs.sqlmapper.dialect=oracle
vs.sqlmapper.showSql=true {{- else if eq .dbType "dm" }}
spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
hibernate.dialect=org.hibernate.dialect.DmDialect
vs.sqlmapper.dialect=dm
{{- end }} {{- end }}
hibernate.show_sql=true
vs.sqlmapper.showSql=true
spring.datasource.tomcat.max-age=3600000 spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false spring.jpa.open-in-view=false
spring.redis.host=${REDIS_HOST:redis.byteawake.com} spring.redis.host=${REDIS_HOST:redis.byteawake.com}

View File

@@ -14,6 +14,8 @@ spring.datasource.url=jdbc:oracle:thin:@//{{ .dbHost }}:{{ .dbPort }}/ORCLCDB
spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified spring.datasource.url=jdbc:postgresql://{{ .dbHost }}:{{ .dbPort }}/{{ .dbDatabase }}?useUnicode=true&characterEncoding=utf8&autoReconnect=true&stringtype=unspecified
{{- else if eq .dbType "mysql" }} {{- else if eq .dbType "mysql" }}
spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai spring.datasource.url=jdbc:mysql://${DB_HOST:10.0.2.201:3306}/${DB_DATABASE:hande_test}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- else if eq .dbType "dm"}}
spring.datasource.url=jdbc:dm://${ .dbHost }/${ .dbPort }/SYSDBA?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
{{- end }} {{- end }}
spring.datasource.username=${DB_USER:hande_test_user} spring.datasource.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5} spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
@@ -30,10 +32,14 @@ hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
{{- else if eq .dbType "oracle" }} {{- else if eq .dbType "oracle" }}
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.show_sql=true
vs.sqlmapper.dialect=oracle vs.sqlmapper.dialect=oracle
vs.sqlmapper.showSql=true {{- else if eq .dbType "dm" }}
spring.datasource.driver-class-name=dm.jdbc.driver.DmDriver
hibernate.dialect=org.hibernate.dialect.DmDialect
vs.sqlmapper.dialect=dm
{{- end }} {{- end }}
vs.sqlmapper.showSql=true
hibernate.show_sql=true
spring.datasource.tomcat.max-age=3600000 spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false spring.jpa.open-in-view=false

View File

@@ -4,7 +4,7 @@ spring.main.allow-bean-definition-overriding=true
project_id=${projectId} project_id=${projectId}
project_name=handeTest project_name=handeTest
check=true check=true
spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER spring.mvc.pathmatch.matching-strategy=ANT_PATH_MATCHER
#注销掉es的自动装配
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
com.toco.agent.attach=true com.toco.agent.attach=true

0
template/mvnw vendored Normal file → Executable file
View File

0
template/mvnw.cmd vendored Normal file → Executable file
View File

View File

@@ -80,6 +80,11 @@
<ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version> <ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version>
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common> <ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
<vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring> <vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring>
<jjwt.version>0.9.1</jjwt.version>
{{- if eq .dbType "dm" }}
<dm.driver.version>18</dm.driver.version>
<db.hiernate.dialect.version>8.1.3.140</db.hiernate.dialect.version>
{{- end }}
</properties> </properties>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
@@ -367,12 +372,29 @@
<artifactId>opensearch-rest-high-level-client</artifactId> <artifactId>opensearch-rest-high-level-client</artifactId>
<version>${opensearch.version}</version> <version>${opensearch.version}</version>
</dependency> </dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>${jjwt.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.hibernate</groupId> <groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId> <artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version> <version>${hibernate.version}</version>
</dependency>
{{- if eq .dbType "dm" }}
<dependency>
<groupId>dm</groupId>
<artifactId>DmJdbcDriver</artifactId>
<version>${dm.driver.version}</version>
</dependency> </dependency>
</dependencies> <dependency>
<groupId>com.dameng</groupId>
<artifactId>DmDialect-for-hibernate5.6</artifactId>
<version>${db.hiernate.dialect.version}</version>
</dependency>
{{- end }}
</dependencies>
</dependencyManagement> </dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
@@ -385,18 +407,31 @@
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<type>pom</type> <type>pom</type>
</dependency> </dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.el</artifactId>
<version>3.0.0</version>
</dependency>
<dependency> <dependency>
<groupId>org.apache.logging.log4j</groupId> <groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId> <artifactId>log4j-core</artifactId>
<version>2.17.0</version> <version>2.17.0</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.baomidou</groupId> <groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId> <artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.7</version> <version>3.5.7</version>
</dependency> </dependency>
{{- if eq .dbType "dm" }}
<dependency>
<groupId>dm</groupId>
<artifactId>DmJdbcDriver</artifactId>
</dependency>
<dependency>
<groupId>com.dameng</groupId>
<artifactId>DmDialect-for-hibernate5.6</artifactId>
</dependency>
{{- end }}
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>

0
template/run.bat Normal file → Executable file
View File

0
template/run.sh Normal file → Executable file
View File