This commit is contained in:
2024-08-06 19:17:39 +08:00
parent 057beca6f9
commit 5b24827455
24 changed files with 562 additions and 507 deletions

View File

@@ -1,44 +0,0 @@
{
"name": "devcontainer",
"image": "registry.cn-hangzhou.aliyuncs.com/zeroware/devcontainer:latest",
"runArgs": ["--name", "${localWorkspaceFolderBasename}_devcontainer", "--env-file",".env"],
"forwardPorts": [
8080
],
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
"containerUser": "ubuntu",
"remoteUser": "ubuntu",
"containerEnv": {
"HOME": "/home/ubuntu"
},
"remoteEnv": {
"HOME": "/home/ubuntu"
},
"updateRemoteUserUID": true,
"mounts": [
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.m2/repository",
"target": "/home/ubuntu/.m2/repository",
"type": "bind"
},
{
"source": "${localEnv:HOME}${localEnv:USERPROFILE}/.ssh",
"target": "/home/ubuntu/.ssh",
"type": "bind"
}
],
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"extensions": [
"vscjava.vscode-java-dependency",
"vscjava.vscode-maven",
"vscjava.vscode-java-test",
"vscjava.vscode-java-debug",
"vscjava.vscode-java-pack",
"esbenp.prettier-vscode"
]
}
}
}

View File

@@ -1,12 +0,0 @@
DB_HOST=116.63.207.117:13306
ROCKETMQ_HOST=116.63.207.117:19876
OPENSEARCH_HOST=116.63.207.117:19200
OPENSEARCH_PASSWORD=UW15/xI9CRFfAexPJWWZ6g
XXL_JOB_ADMIN_ADDRESS=https://xxljob.byteawake.com/xxl-job-admin
XXL_JOB_ADMIN_PASSWORD=7t/IbuxDLIU
REDIS_HOST=116.63.207.117:16379
REDIS_PASSWORD=9P7Alc4bicS/rC992aO45Q

2
template/.gitignore vendored
View File

@@ -29,5 +29,5 @@ logs/
## vs
.vs
modules/**
!modules/.gitkeep
.gen

View File

@@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="{{ .db_database }}" uuid="{{ uuidv4 }}">
<driver-ref>mysql.8</driver-ref>
<synchronize>true</synchronize>
{{- if eq .dbType "mysql" }}
<jdbc-driver>com.mysql.cj.jdbc.Driver</jdbc-driver>
{{- else if eq .dbType "postgresql" }}
<jdbc-driver>org.postgresql.Driver</jdbc-driver>
{{- end }}
<jdbc-url>jdbc:{{ .dbType }}://{{ .db_address }}/{{ .db_database }}</jdbc-url>
<working-dir>$ProjectFileDir$</working-dir>
</data-source>
</component>
</project>

View File

@@ -14,7 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
distributionUrl=https://maven.aliyun.com/repository/public/org/apache/maven/apache-maven/3.8.8/apache-maven-3.8.8-bin.zip
distributionSha256Sum=2e181515ce8ae14b7a904c40bb4794831f5fd1d9641107a13b916af15af4001a
distributionUrl=https://maven.aliyun.com/repository/public/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
distributionSha256Sum=7822eb593d29558d8edf87845a2c47e36e2a89d17a84cd2390824633214ed423
wrapperUrl=https://maven.aliyun.com/repository/public/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
wrapperUrlSha256Sum=e63a53cfb9c4d291ebe3c2b0edacb7622bbc480326beaa5a0456e412f52f066a

View File

@@ -3,7 +3,7 @@ FROM registry.cn-hangzhou.aliyuncs.com/zeroware/javaapp-builder:latest as builde
WORKDIR source
COPY ./ ./
ARG JAR_FILE=entrance/web/target/*.jar
RUN --mount=type=cache,target=/root/.m2/repository,rw --mount=type=tmpfs,target=/root/.m2/repository/{{ .groupId | replace "." "/" }} mvnd clean package -Dmaven.test.skip=true
RUN --mount=type=cache,target=/root/.m2/repository,rw --mount=type=tmpfs,target=/root/.m2/repository/com/hande mvnd clean package -Dmaven.test.skip=true
RUN cp ${JAR_FILE} app.jar
RUN java -Djarmode=layertools -jar ./app.jar extract

View File

@@ -1,5 +1,9 @@
package {{ .package }}.common.config;
import io.micrometer.core.instrument.Clock;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.MockClock;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.annotation.Resource;
@@ -12,7 +16,6 @@ import {{ .package }}.common.rocketmq.RocketMQServiceImpl;
public class RocketMqAutoConfiguration {
@Resource
private MqConfig mqConfig;
@Bean
RocketMQService createRocketMQService() {
RocketMQServiceImpl instance = new RocketMQServiceImpl(mqConfig.getNameServer());

View File

@@ -1,34 +0,0 @@
schemaVersion: 2.2.0
metadata:
name: {{ .projectName }}
components:
- name: tools
container:
image: registry.cn-hangzhou.aliyuncs.com/zeroware/devcontainer:latest
memoryLimit: 4Gi
endpoints:
- name: http
exposure: public
protocol: http
targetPort: 8080
- name: ssh-service
kubernetes:
deployByDefault: true
inlined: |
apiVersion: v1
kind: Service
metadata:
name: {{ .projectName }}-ssh
spec:
ports:
- name: ssh
port: 22222
protocol: TCP
targetPort: 22222
selector:
controller.devfile.io/devworkspace_name: {{ .projectName }}
type: NodePort

View File

@@ -1,18 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}</artifactId>
<version>{{ .version }}</version>
<version>1.0-SNAPSHOT</version>
</parent>
<artifactId>{{ .artifactId }}-entrance</artifactId>
<version>{{ .version }}</version>
<packaging>pom</packaging>
<dependencies>
<dependency>
<groupId>{{ .groupId }}</groupId>
@@ -20,7 +17,6 @@
<version>{{ .version }}</version>
</dependency>
</dependencies>
<modules>
<module>mq</module>
<module>web</module>

View File

@@ -47,7 +47,6 @@
<layers>
<enabled>true</enabled>
</layers>
<skip>false</skip>
</configuration>
</plugin>
</plugins>

View File

@@ -13,6 +13,7 @@ import com.vs.debug.stack.agent.StackContextInvokeRecorder;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
@@ -23,8 +24,8 @@ import org.springframework.context.annotation.Import;
* @author byteawake
* @date 2021/5/11 下午5:30
*/
@SpringBootApplication(scanBasePackages = {"{{ .groupId }}", "com.vs", "{{ .groupId }}.index_sync"})
@VSDaoBeanScan(basePackages = {"com.vs","{{ .groupId }}"})
@SpringBootApplication(scanBasePackages = {"com.hande", "com.vs", "com.hande.index_sync"})
@VSDaoBeanScan(basePackages = {"com.vs","com.hande"})
@Import(DataSourceConfig.class)
@EnableVSReplayConfiguration
@EnableVSMockConfiguration

View File

@@ -1,44 +1,55 @@
server.port=8080
server.port=8082
endpoints.enabled=false
server.forward-headers-strategy=framework
#custom corss-domain headers, split by ','
cross.domain.headers=
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
base.package={{ .groupId }}
base.package=com.hande
# datasource
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
spring.datasource.username=${DB_USER:{{ .dbUser }}}
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
{{- 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&useSSL=false
spring.datasource.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
{{- else if eq .dbType "postgresql" }}
spring.datasource.driver-class-name=org.postgresql.Driver
{{- end }}
spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false
management.metrics.export.simple.enabled=false
spring.redis.host=${REDIS_HOST:redis.byteawake.com}
# flyway
spring.flyway.enabled=false
spring.flyway.outOfOrder=true
spring.flyway.baselineOnMigrate=true
spring.upload.file.path=/data/upload
spring.exception.isHtmlRequired=false
spring.main.lazy-initialization=true
application.name=libawall
mybatis.configuration.map-underscore-to-camel-case=true
spring.url.aaa=http://localhost:8080
spring.websocket.enabled=false
spring.application.name=libawall
spring.security.enabled=false
spring.login.security.enableRoleRequired=false
spring.login.security.login=false
spring.security.authignored=/api/**,/rpc/**
#rocketmq
rocketmq.name-server=${ROCKETMQ_HOST:{{ .rocketmq_address }}}
rocketmq.topic=${DB_DATABASE:{{ .rocketmq_topic }}}
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
rocketmq.name-server=${ROCKETMQ_HOST:10.0.2.221:9876;10.0.2.222:9876;10.0.2.223:9876}
rocketmq.topic=${DB_DATABASE:hande_test}
rocketmq.consumerGroup=CID_handeTest
rocketmq.tag=*
rocketmq.producer.group={{ .rocketmq_producerGroup }}
rocketmq.producer.group=PID_handeTest
spring.main.allow-circular-references=true
spring.login.security.csrf=false
#elasticsearch
essql.hosts=${OPENSEARCH_HOST:{{ .elasticsearch_host }}}
essql.port={{ .elasticsearch_port }}
essql.username=${OPENSEARCH_USER:{{ .elasticsearch_username }}}
essql.password=${OPENSEARCH_PASSWORD:{{ .elasticsearch_password }}}
essql.scheme=${OPENSEARCH_SCHEME:{{ .elasticsearch_scheme }}}
essql.hosts=${OPENSEARCH_HOST:10.0.2.221,10.0.2.222,10.0.2.223}
essql.port=9200
essql.username=${OPENSEARCH_USER:admin}
essql.password=${OPENSEARCH_PASSWORD:dnZkaNVK}
essql.scheme=${OPENSEARCH_SCHEME:https}
#get user config
get_user_uri={}
@@ -51,20 +62,20 @@ out.response.headers=Content-Type
out.host=
#xxljob
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS:{{ .xxljob_address }}}
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS:https://xxljob.teitui.com/xxl-job-admin}
xxl.job.executor.port=9999
xxl.job.executor.appname={{ .artifactId }}
xxl.job.executor.title={{ .artifactId }}
xxl.job.accessToken={{ .xxljob_accessToken }}
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:{{ .xxljob_username }}}
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:{{ .xxljob_password }}}
xxl.job.executor.appname=handeTest
xxl.job.executor.title=handeTest
xxl.job.accessToken=default_token
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
#redis
redis-config.pool.hostAndPort=${REDIS_HOST:{{ .redis_address }}}
redis-config.pool.password=${REDIS_PASSWORD:{{ .redis_password }}}
redis-config.pool.maxTotal={{ .redis_maxTotal }}
redis-config.pool.maxIdle={{ .redis_maxIdle }}
redis-config.pool.minIdle={{ .redis_minIdle }}
redis-config.pool.hostAndPort=${REDIS_HOST:redis.byteawake.com:6379}
redis-config.pool.password=${REDIS_PASSWORD:}
redis-config.pool.maxTotal=100
redis-config.pool.maxIdle=10
redis-config.pool.minIdle=10
redis-config.pool.maxWaitMillis=10000
redis-config.pool.softMinEvictableIdleTimeMillis=10000
redis-config.pool.testOnBorrow=true

View File

@@ -5,16 +5,12 @@ server.forward-headers-strategy=framework
cross.domain.headers=
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
base.package={{ .groupId }}
base.package=com.hande
# datasource
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
spring.datasource.username=${DB_USER:{{ .dbUser }}}
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
{{- 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.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
{{- else if eq .dbType "postgresql" }}
spring.datasource.driver-class-name=org.postgresql.Driver
{{- end }}
spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false
@@ -28,14 +24,14 @@ mybatis.configuration.map-underscore-to-camel-case=true
#rocketmq
rocketmq.name-server=${ROCKETMQ_HOST}
rocketmq.topic={{ .rocketmq_topic }}
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
rocketmq.topic=hande_test
rocketmq.consumerGroup=CID_handeTest
rocketmq.tag=*
rocketmq.producer.group={{ .rocketmq_producerGroup }}
rocketmq.producer.group=PID_handeTest
#elasticsearch
essql.hosts=${OPENSEARCH_HOST}
essql.port={{ .elasticsearch_port }}
essql.port=9200
essql.username=${OPENSEARCH_USER:admin}
essql.password=${OPENSEARCH_PASSWORD:admin}
essql.scheme=${OPENSEARCH_SCHEME:https}
@@ -52,18 +48,18 @@ out.host=
#xxljob
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS}
xxl.job.executor.port=9999
xxl.job.executor.appname={{ .artifactId }}
xxl.job.executor.title={{ .artifactId }}
xxl.job.accessToken={{ .xxljob_accessToken }}
xxl.job.executor.appname=handeTest
xxl.job.executor.title=handeTest
xxl.job.accessToken=default_token
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
#redis
redis-config.pool.hostAndPort=${REDIS_HOST}
redis-config.pool.password=${REDIS_PASSWORD}
redis-config.pool.maxTotal={{ .redis_maxTotal }}
redis-config.pool.maxIdle={{ .redis_maxIdle }}
redis-config.pool.minIdle={{ .redis_minIdle }}
redis-config.pool.maxTotal=100
redis-config.pool.maxIdle=10
redis-config.pool.minIdle=10
redis-config.pool.maxWaitMillis=10000
redis-config.pool.softMinEvictableIdleTimeMillis=10000
redis-config.pool.testOnBorrow=true

View File

@@ -5,16 +5,12 @@ server.forward-headers-strategy=framework
cross.domain.headers=
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
base.package={{ .groupId }}
base.package=com.hande
# datasource
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?characterEncoding=utf-8&serverTimezone=Asia/Shanghai
spring.datasource.username=${DB_USER:{{ .dbUser }}}
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
{{- 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.username=${DB_USER:hande_test_user}
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
{{- else if eq .dbType "postgresql" }}
spring.datasource.driver-class-name=org.postgresql.Driver
{{- end }}
spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
spring.datasource.tomcat.max-age=3600000
spring.jpa.open-in-view=false
@@ -27,18 +23,18 @@ spring.flyway.baselineOnMigrate=true
mybatis.configuration.map-underscore-to-camel-case=true
#rocketmq
rocketmq.name-server=${ROCKETMQ_HOST:{{ .rocketmq_address }}}
rocketmq.topic=${MYSQL_DATABASE:{{ .rocketmq_topic }}}
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
rocketmq.name-server=${ROCKETMQ_HOST:10.0.2.221:9876;10.0.2.222:9876;10.0.2.223:9876}
rocketmq.topic=${MYSQL_DATABASE:hande_test}
rocketmq.consumerGroup=CID_handeTest
rocketmq.tag=*
rocketmq.producer.group={{ .rocketmq_producerGroup }}
rocketmq.producer.group=PID_handeTest
#elasticsearch
essql.hosts=${OPENSEARCH_HOST:{{ .elasticsearch_host }}}
essql.port={{ .elasticsearch_port }}
essql.username=${OPENSEARCH_USER:{{ .elasticsearch_username }}}
essql.password=${OPENSEARCH_PASSWORD:{{ .elasticsearch_password }}}
essql.scheme=${OPENSEARCH_SCHEME:{{ .elasticsearch_scheme }}}
essql.hosts=${OPENSEARCH_HOST:10.0.2.221,10.0.2.222,10.0.2.223}
essql.port=9200
essql.username=${OPENSEARCH_USER:admin}
essql.password=${OPENSEARCH_PASSWORD:dnZkaNVK}
essql.scheme=${OPENSEARCH_SCHEME:https}
#get user config
get_user_uri={}
@@ -51,20 +47,20 @@ out.response.headers=Content-Type
out.host=
#xxljob
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS:{{ .xxljob_address }}}
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS:https://xxljob.teitui.com/xxl-job-admin}
xxl.job.executor.port=9999
xxl.job.executor.appname={{ .artifactId }}
xxl.job.executor.title={{ .artifactId }}
xxl.job.accessToken={{ .xxljob_accessToken }}
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:{{ .xxljob_username }}}
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:{{ .xxljob_password }}}
xxl.job.executor.appname=handeTest
xxl.job.executor.title=handeTest
xxl.job.accessToken=default_token
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
#redis
redis-config.pool.hostAndPort=${REDIS_HOST:{{ .redis_address }}}
redis-config.pool.password=${REDIS_PASSWORD:{{ .redis_password }}}
redis-config.pool.maxTotal={{ .redis_maxTotal }}
redis-config.pool.maxIdle={{ .redis_maxIdle }}
redis-config.pool.minIdle={{ .redis_minIdle }}
redis-config.pool.hostAndPort=${REDIS_HOST:redis.byteawake.com:6379}
redis-config.pool.password=${REDIS_PASSWORD:}
redis-config.pool.maxTotal=100
redis-config.pool.maxIdle=10
redis-config.pool.minIdle=10
redis-config.pool.maxWaitMillis=10000
redis-config.pool.softMinEvictableIdleTimeMillis=10000
redis-config.pool.testOnBorrow=true

View File

@@ -1,5 +1,6 @@
spring.profiles.active=local
envs=local,remote,online,custom
spring.main.allow-bean-definition-overriding=true
project_id=${projectId}
project_name={{ .artifactId }}
project_name=handeTest
check=true

View File

@@ -1,25 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.7.RELEASE</version>
<version>2.7.18</version>
<relativePath/>
<!-- lookup parent from repository -->
</parent>
<groupId>{{ .groupId }}</groupId>
<artifactId>{{ .artifactId }}</artifactId>
<version>{{ .version }}</version>
<packaging>pom</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<junit.version>4.12</junit.version>
<vs.common.util.version>1.2.2</vs.common.util.version>
<vs.common.version>1.2.0</vs.common.version>
@@ -27,7 +24,6 @@
<lombok.version>1.18.20</lombok.version>
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
<logback.classic.version>1.2.3</logback.classic.version>
<log4j.version>2.23.1</log4j.version>
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
<flyway.version>5.2.4</flyway.version>
<vs.common.rpc.version>1.3.0-SNAPSHOT</vs.common.rpc.version>
@@ -41,49 +37,278 @@
<javax.persistence-api>2.2</javax.persistence-api>
<elasticsearch.version>7.3.1</elasticsearch.version>
<dist.version>1.2.2</dist.version>
{{- if eq .dbType "mysql" }}
{{- else if eq .dbType "postgresql" }}
<postgresql.version>42.6.2</postgresql.version>
{{- end }}
<libawall.version>2.2.0.RELEASE</libawall.version>
<toco.version>1.0.0-SNAPSHOT</toco.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-autoconfigure</artifactId>-->
<!-- <version>2.7.18</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.vs</groupId>
<artifactId>ox-bo-common</artifactId>
<version>${vs.bo.common}</version>
<groupId>com.esotericsoftware</groupId>
<artifactId>kryo</artifactId>
<version>5.5.0</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>common-rpc</artifactId>
<version>${vs.common.rpc.version}</version>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.0.3</version>
</dependency>
{{- if eq .dbType "mysql" }}
{{- else if eq .dbType "postgresql" }}
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>3.5.3</version>
</dependency>
{{- end }}
<!-- uncomment to enable livereload
<dependency>
<groupId>com.toco</groupId>
<artifactId>toco-all</artifactId>
<type>pom</type>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<!-- libawall dependencies start -->
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-core</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-dubbo</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-httpclient</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.enums</groupId>
<artifactId>libawall-enums-client</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.enums</groupId>
<artifactId>libawall-enums-service</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.enums</groupId>
<artifactId>libawall-enums-web</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.note</groupId>
<artifactId>libawall-note-client</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.note</groupId>
<artifactId>libawall-note-service</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.note</groupId>
<artifactId>libawall-note-web</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.role</groupId>
<artifactId>libawall-role-client</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.role</groupId>
<artifactId>libawall-role-service</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.role</groupId>
<artifactId>libawall-role-web</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.upload</groupId>
<artifactId>libawall-upload-client</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.upload</groupId>
<artifactId>libawall-upload-service</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.upload</groupId>
<artifactId>libawall-upload-web</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.upload</groupId>
<artifactId>libawall-upload-core</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-mybatis</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-mybatisplus</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-quartz</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.rabbitmq</groupId>
<artifactId>libawall-rabbitmq-client</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.rabbitmq</groupId>
<artifactId>libawall-rabbitmq-service</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-common</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-core</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-oauth</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-session-websocket</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-spring-security</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework.security</groupId>
<artifactId>libawall-security-spring-session</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-swagger</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-utils</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-web</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>com.libawallframework</groupId>
<artifactId>libawall-xxl-job</artifactId>
<version>${libawall.version}</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.3.2</version>
</dependency>
<dependency>
<groupId>com.github.binarywang</groupId>
<artifactId>weixin-java-miniapp</artifactId>
<version>4.3.0</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.security</groupId>-->
<!-- <artifactId>spring-security-web</artifactId>-->
<!-- <version>5.7.11</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency> -->
<artifactId>spring-boot-starter-amqp</artifactId>
<version>2.7.18</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.redisson</groupId>-->
<!-- <artifactId>redisson-spring-boot-starter</artifactId>-->
<!-- <version>3.25.2</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.7.18</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.3.31</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.3.31</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-context-support</artifactId>-->
<!-- <version>5.3.31</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-web</artifactId>-->
<!-- <version>5.3.31</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-aspects</artifactId>-->
<!-- <version>5.3.31</version>-->
<!-- </dependency>-->
<dependency>
<groupId>com.alipay.sdk</groupId>
<artifactId>alipay-sdk-java</artifactId>
<version>4.9.28.ALL</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-aop</artifactId>-->
<!-- <version>5.3.14</version>-->
<!-- </dependency>-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.11</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.17</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-context</artifactId>-->
<!-- <version>5.3.31</version>-->
<!-- </dependency>-->
<!-- libawall dependencies end -->
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
@@ -119,67 +344,52 @@
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>ox-springboot-web-starter</artifactId>
<version>${ox.sprintboot.web.starter.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>dist</artifactId>
<version>${dist.version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotation.api.version}</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.classic.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>${log4j.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>ox-basidc-common</artifactId>
<version>${ox.basidc.common}</version>
<exclusions>
<exclusion>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>${flyway.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>common-rpc</artifactId>
<version>${vs.common.rpc.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>vs-sqlmapper-spring</artifactId>
@@ -190,7 +400,6 @@
<artifactId>vs-elasticsearch</artifactId>
<version>${vs.elasticsearch.version}</version>
</dependency>
<dependency>
<groupId>com.vs</groupId>
<artifactId>vs-mock-web</artifactId>
@@ -211,43 +420,10 @@
<artifactId>vs.common.util</artifactId>
<version>${vs.common.util.version}</version>
</dependency>
{{- if eq .db_type "mysql" }}
{{- else if eq .db_type "postgresql" }}
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
{{- end }}
</dependencies>
</dependencyManagement>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.4.1</version>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[11.0,21.0)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>3.8</version>
</requireMavenVersion>
</rules>
<fail>true</fail>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
@@ -256,16 +432,8 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<repository>
<id>zeroware-maven-releases</id>
@@ -276,7 +444,6 @@
<url>https://repo.byteawake.com/repository/zeroware-maven-snapshots/</url>
</snapshotRepository>
</distributionManagement>
<modules>
<module>entrance</module>
<module>common</module>

View File

@@ -1,3 +1,3 @@
id={{ .projectId }}
name={{ .projectName | replace "-" "_" }}
version={{ .vsVersion }}
id=8347572c-b33f-4888-b1bf-cc9149fff6f7
name=hande_test
version=1.0.0

View File

@@ -1,4 +0,0 @@
@echo off
cd /d %~dp0
.\mvnw.cmd -Dstyle.color=always spring-boot:run %*

View File

@@ -1,5 +0,0 @@
#!/bin/sh
cd $(dirname $0)
./mvnw -Dstyle.color=always spring-boot:run $@