init
This commit is contained in:
@@ -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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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
2
template/.gitignore
vendored
@@ -29,5 +29,5 @@ logs/
|
|||||||
|
|
||||||
## vs
|
## vs
|
||||||
.vs
|
.vs
|
||||||
|
modules/**
|
||||||
!modules/.gitkeep
|
!modules/.gitkeep
|
||||||
.gen
|
|
||||||
|
|||||||
16
template/.idea/dataSources.xml
generated
16
template/.idea/dataSources.xml
generated
@@ -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>
|
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
# KIND, either express or implied. See the License for the
|
# KIND, either express or implied. See the License for the
|
||||||
# specific language governing permissions and limitations
|
# specific language governing permissions and limitations
|
||||||
# under the License.
|
# 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
|
distributionUrl=https://maven.aliyun.com/repository/public/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
|
||||||
distributionSha256Sum=2e181515ce8ae14b7a904c40bb4794831f5fd1d9641107a13b916af15af4001a
|
distributionSha256Sum=7822eb593d29558d8edf87845a2c47e36e2a89d17a84cd2390824633214ed423
|
||||||
wrapperUrl=https://maven.aliyun.com/repository/public/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
|
wrapperUrl=https://maven.aliyun.com/repository/public/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
|
||||||
wrapperUrlSha256Sum=e63a53cfb9c4d291ebe3c2b0edacb7622bbc480326beaa5a0456e412f52f066a
|
wrapperUrlSha256Sum=e63a53cfb9c4d291ebe3c2b0edacb7622bbc480326beaa5a0456e412f52f066a
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ FROM registry.cn-hangzhou.aliyuncs.com/zeroware/javaapp-builder:latest as builde
|
|||||||
WORKDIR source
|
WORKDIR source
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
ARG JAR_FILE=entrance/web/target/*.jar
|
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 cp ${JAR_FILE} app.jar
|
||||||
RUN java -Djarmode=layertools -jar ./app.jar extract
|
RUN java -Djarmode=layertools -jar ./app.jar extract
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
package {{ .package }}.common.config;
|
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.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@@ -12,7 +16,6 @@ import {{ .package }}.common.rocketmq.RocketMQServiceImpl;
|
|||||||
public class RocketMqAutoConfiguration {
|
public class RocketMqAutoConfiguration {
|
||||||
@Resource
|
@Resource
|
||||||
private MqConfig mqConfig;
|
private MqConfig mqConfig;
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
RocketMQService createRocketMQService() {
|
RocketMQService createRocketMQService() {
|
||||||
RocketMQServiceImpl instance = new RocketMQServiceImpl(mqConfig.getNameServer());
|
RocketMQServiceImpl instance = new RocketMQServiceImpl(mqConfig.getNameServer());
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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">
|
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>{{ .groupId }}</groupId>
|
<groupId>{{ .groupId }}</groupId>
|
||||||
<artifactId>{{ .artifactId }}</artifactId>
|
<artifactId>{{ .artifactId }}</artifactId>
|
||||||
<version>{{ .version }}</version>
|
<version>1.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
<artifactId>{{ .artifactId }}-entrance</artifactId>
|
||||||
<version>{{ .version }}</version>
|
<version>{{ .version }}</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>{{ .groupId }}</groupId>
|
<groupId>{{ .groupId }}</groupId>
|
||||||
@@ -20,7 +17,6 @@
|
|||||||
<version>{{ .version }}</version>
|
<version>{{ .version }}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<module>mq</module>
|
<module>mq</module>
|
||||||
<module>web</module>
|
<module>web</module>
|
||||||
|
|||||||
@@ -47,7 +47,6 @@
|
|||||||
<layers>
|
<layers>
|
||||||
<enabled>true</enabled>
|
<enabled>true</enabled>
|
||||||
</layers>
|
</layers>
|
||||||
<skip>false</skip>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import com.vs.debug.stack.agent.StackContextInvokeRecorder;
|
|||||||
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;
|
||||||
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||||
import org.springframework.context.annotation.Bean;
|
import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Import;
|
import org.springframework.context.annotation.Import;
|
||||||
|
|
||||||
@@ -23,8 +24,8 @@ import org.springframework.context.annotation.Import;
|
|||||||
* @author byteawake
|
* @author byteawake
|
||||||
* @date 2021/5/11 下午5:30
|
* @date 2021/5/11 下午5:30
|
||||||
*/
|
*/
|
||||||
@SpringBootApplication(scanBasePackages = {"{{ .groupId }}", "com.vs", "{{ .groupId }}.index_sync"})
|
@SpringBootApplication(scanBasePackages = {"com.hande", "com.vs", "com.hande.index_sync"})
|
||||||
@VSDaoBeanScan(basePackages = {"com.vs","{{ .groupId }}"})
|
@VSDaoBeanScan(basePackages = {"com.vs","com.hande"})
|
||||||
@Import(DataSourceConfig.class)
|
@Import(DataSourceConfig.class)
|
||||||
@EnableVSReplayConfiguration
|
@EnableVSReplayConfiguration
|
||||||
@EnableVSMockConfiguration
|
@EnableVSMockConfiguration
|
||||||
@@ -1,44 +1,55 @@
|
|||||||
server.port=8080
|
server.port=8082
|
||||||
endpoints.enabled=false
|
endpoints.enabled=false
|
||||||
server.forward-headers-strategy=framework
|
server.forward-headers-strategy=framework
|
||||||
#custom corss-domain headers, split by ','
|
#custom corss-domain headers, split by ','
|
||||||
cross.domain.headers=
|
cross.domain.headers=
|
||||||
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
||||||
|
|
||||||
base.package={{ .groupId }}
|
base.package=com.hande
|
||||||
# datasource
|
# datasource
|
||||||
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?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&useSSL=false
|
||||||
spring.datasource.username=${DB_USER:{{ .dbUser }}}
|
spring.datasource.username=${DB_USER:hande_test_user}
|
||||||
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
|
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
|
||||||
{{- if eq .dbType "mysql" }}
|
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
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.type=org.apache.tomcat.jdbc.pool.DataSource
|
||||||
spring.datasource.tomcat.max-age=3600000
|
spring.datasource.tomcat.max-age=3600000
|
||||||
spring.jpa.open-in-view=false
|
spring.jpa.open-in-view=false
|
||||||
|
management.metrics.export.simple.enabled=false
|
||||||
|
spring.redis.host=${REDIS_HOST:redis.byteawake.com}
|
||||||
|
|
||||||
|
|
||||||
# flyway
|
# flyway
|
||||||
spring.flyway.enabled=false
|
spring.flyway.enabled=false
|
||||||
spring.flyway.outOfOrder=true
|
spring.flyway.outOfOrder=true
|
||||||
spring.flyway.baselineOnMigrate=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
|
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
|
||||||
rocketmq.name-server=${ROCKETMQ_HOST:{{ .rocketmq_address }}}
|
rocketmq.name-server=${ROCKETMQ_HOST:10.0.2.221:9876;10.0.2.222:9876;10.0.2.223:9876}
|
||||||
rocketmq.topic=${DB_DATABASE:{{ .rocketmq_topic }}}
|
rocketmq.topic=${DB_DATABASE:hande_test}
|
||||||
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
|
rocketmq.consumerGroup=CID_handeTest
|
||||||
rocketmq.tag=*
|
rocketmq.tag=*
|
||||||
rocketmq.producer.group={{ .rocketmq_producerGroup }}
|
rocketmq.producer.group=PID_handeTest
|
||||||
|
spring.main.allow-circular-references=true
|
||||||
|
spring.login.security.csrf=false
|
||||||
|
|
||||||
#elasticsearch
|
#elasticsearch
|
||||||
essql.hosts=${OPENSEARCH_HOST:{{ .elasticsearch_host }}}
|
essql.hosts=${OPENSEARCH_HOST:10.0.2.221,10.0.2.222,10.0.2.223}
|
||||||
essql.port={{ .elasticsearch_port }}
|
essql.port=9200
|
||||||
essql.username=${OPENSEARCH_USER:{{ .elasticsearch_username }}}
|
essql.username=${OPENSEARCH_USER:admin}
|
||||||
essql.password=${OPENSEARCH_PASSWORD:{{ .elasticsearch_password }}}
|
essql.password=${OPENSEARCH_PASSWORD:dnZkaNVK}
|
||||||
essql.scheme=${OPENSEARCH_SCHEME:{{ .elasticsearch_scheme }}}
|
essql.scheme=${OPENSEARCH_SCHEME:https}
|
||||||
|
|
||||||
#get user config
|
#get user config
|
||||||
get_user_uri={}
|
get_user_uri={}
|
||||||
@@ -51,20 +62,20 @@ out.response.headers=Content-Type
|
|||||||
out.host=
|
out.host=
|
||||||
|
|
||||||
#xxljob
|
#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.port=9999
|
||||||
xxl.job.executor.appname={{ .artifactId }}
|
xxl.job.executor.appname=handeTest
|
||||||
xxl.job.executor.title={{ .artifactId }}
|
xxl.job.executor.title=handeTest
|
||||||
xxl.job.accessToken={{ .xxljob_accessToken }}
|
xxl.job.accessToken=default_token
|
||||||
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:{{ .xxljob_username }}}
|
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
|
||||||
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:{{ .xxljob_password }}}
|
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
|
||||||
|
|
||||||
#redis
|
#redis
|
||||||
redis-config.pool.hostAndPort=${REDIS_HOST:{{ .redis_address }}}
|
redis-config.pool.hostAndPort=${REDIS_HOST:redis.byteawake.com:6379}
|
||||||
redis-config.pool.password=${REDIS_PASSWORD:{{ .redis_password }}}
|
redis-config.pool.password=${REDIS_PASSWORD:}
|
||||||
redis-config.pool.maxTotal={{ .redis_maxTotal }}
|
redis-config.pool.maxTotal=100
|
||||||
redis-config.pool.maxIdle={{ .redis_maxIdle }}
|
redis-config.pool.maxIdle=10
|
||||||
redis-config.pool.minIdle={{ .redis_minIdle }}
|
redis-config.pool.minIdle=10
|
||||||
redis-config.pool.maxWaitMillis=10000
|
redis-config.pool.maxWaitMillis=10000
|
||||||
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
||||||
redis-config.pool.testOnBorrow=true
|
redis-config.pool.testOnBorrow=true
|
||||||
|
|||||||
@@ -5,16 +5,12 @@ server.forward-headers-strategy=framework
|
|||||||
cross.domain.headers=
|
cross.domain.headers=
|
||||||
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
||||||
|
|
||||||
base.package={{ .groupId }}
|
base.package=com.hande
|
||||||
# datasource
|
# datasource
|
||||||
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?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
|
||||||
spring.datasource.username=${DB_USER:{{ .dbUser }}}
|
spring.datasource.username=${DB_USER:hande_test_user}
|
||||||
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
|
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
|
||||||
{{- if eq .dbType "mysql" }}
|
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
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.type=org.apache.tomcat.jdbc.pool.DataSource
|
||||||
spring.datasource.tomcat.max-age=3600000
|
spring.datasource.tomcat.max-age=3600000
|
||||||
spring.jpa.open-in-view=false
|
spring.jpa.open-in-view=false
|
||||||
@@ -28,14 +24,14 @@ mybatis.configuration.map-underscore-to-camel-case=true
|
|||||||
|
|
||||||
#rocketmq
|
#rocketmq
|
||||||
rocketmq.name-server=${ROCKETMQ_HOST}
|
rocketmq.name-server=${ROCKETMQ_HOST}
|
||||||
rocketmq.topic={{ .rocketmq_topic }}
|
rocketmq.topic=hande_test
|
||||||
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
|
rocketmq.consumerGroup=CID_handeTest
|
||||||
rocketmq.tag=*
|
rocketmq.tag=*
|
||||||
rocketmq.producer.group={{ .rocketmq_producerGroup }}
|
rocketmq.producer.group=PID_handeTest
|
||||||
|
|
||||||
#elasticsearch
|
#elasticsearch
|
||||||
essql.hosts=${OPENSEARCH_HOST}
|
essql.hosts=${OPENSEARCH_HOST}
|
||||||
essql.port={{ .elasticsearch_port }}
|
essql.port=9200
|
||||||
essql.username=${OPENSEARCH_USER:admin}
|
essql.username=${OPENSEARCH_USER:admin}
|
||||||
essql.password=${OPENSEARCH_PASSWORD:admin}
|
essql.password=${OPENSEARCH_PASSWORD:admin}
|
||||||
essql.scheme=${OPENSEARCH_SCHEME:https}
|
essql.scheme=${OPENSEARCH_SCHEME:https}
|
||||||
@@ -52,18 +48,18 @@ out.host=
|
|||||||
#xxljob
|
#xxljob
|
||||||
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS}
|
xxl.job.admin.addresses=${XXL_JOB_ADMIN_ADDRESS}
|
||||||
xxl.job.executor.port=9999
|
xxl.job.executor.port=9999
|
||||||
xxl.job.executor.appname={{ .artifactId }}
|
xxl.job.executor.appname=handeTest
|
||||||
xxl.job.executor.title={{ .artifactId }}
|
xxl.job.executor.title=handeTest
|
||||||
xxl.job.accessToken={{ .xxljob_accessToken }}
|
xxl.job.accessToken=default_token
|
||||||
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
|
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
|
||||||
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
|
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
|
||||||
|
|
||||||
#redis
|
#redis
|
||||||
redis-config.pool.hostAndPort=${REDIS_HOST}
|
redis-config.pool.hostAndPort=${REDIS_HOST}
|
||||||
redis-config.pool.password=${REDIS_PASSWORD}
|
redis-config.pool.password=${REDIS_PASSWORD}
|
||||||
redis-config.pool.maxTotal={{ .redis_maxTotal }}
|
redis-config.pool.maxTotal=100
|
||||||
redis-config.pool.maxIdle={{ .redis_maxIdle }}
|
redis-config.pool.maxIdle=10
|
||||||
redis-config.pool.minIdle={{ .redis_minIdle }}
|
redis-config.pool.minIdle=10
|
||||||
redis-config.pool.maxWaitMillis=10000
|
redis-config.pool.maxWaitMillis=10000
|
||||||
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
||||||
redis-config.pool.testOnBorrow=true
|
redis-config.pool.testOnBorrow=true
|
||||||
|
|||||||
@@ -5,16 +5,12 @@ server.forward-headers-strategy=framework
|
|||||||
cross.domain.headers=
|
cross.domain.headers=
|
||||||
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
#spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.elasticsearch.ElasticsearchRestClientAutoConfiguration
|
||||||
|
|
||||||
base.package={{ .groupId }}
|
base.package=com.hande
|
||||||
# datasource
|
# datasource
|
||||||
spring.datasource.url=jdbc:{{ .dbType }}://${DB_HOST:{{ .dbHost }}:{{ .dbPort }}}/${DB_DATABASE:{{ .dbDatabase }}}?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
|
||||||
spring.datasource.username=${DB_USER:{{ .dbUser }}}
|
spring.datasource.username=${DB_USER:hande_test_user}
|
||||||
spring.datasource.password=${DB_PASSWORD:{{ .dbPassword }}}
|
spring.datasource.password=${DB_PASSWORD:Yu0FvhjUQDGdnmm5}
|
||||||
{{- if eq .dbType "mysql" }}
|
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
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.type=org.apache.tomcat.jdbc.pool.DataSource
|
||||||
spring.datasource.tomcat.max-age=3600000
|
spring.datasource.tomcat.max-age=3600000
|
||||||
spring.jpa.open-in-view=false
|
spring.jpa.open-in-view=false
|
||||||
@@ -27,18 +23,18 @@ spring.flyway.baselineOnMigrate=true
|
|||||||
mybatis.configuration.map-underscore-to-camel-case=true
|
mybatis.configuration.map-underscore-to-camel-case=true
|
||||||
|
|
||||||
#rocketmq
|
#rocketmq
|
||||||
rocketmq.name-server=${ROCKETMQ_HOST:{{ .rocketmq_address }}}
|
rocketmq.name-server=${ROCKETMQ_HOST:10.0.2.221:9876;10.0.2.222:9876;10.0.2.223:9876}
|
||||||
rocketmq.topic=${MYSQL_DATABASE:{{ .rocketmq_topic }}}
|
rocketmq.topic=${MYSQL_DATABASE:hande_test}
|
||||||
rocketmq.consumerGroup={{ .rocketmq_consumerGroup }}
|
rocketmq.consumerGroup=CID_handeTest
|
||||||
rocketmq.tag=*
|
rocketmq.tag=*
|
||||||
rocketmq.producer.group={{ .rocketmq_producerGroup }}
|
rocketmq.producer.group=PID_handeTest
|
||||||
|
|
||||||
#elasticsearch
|
#elasticsearch
|
||||||
essql.hosts=${OPENSEARCH_HOST:{{ .elasticsearch_host }}}
|
essql.hosts=${OPENSEARCH_HOST:10.0.2.221,10.0.2.222,10.0.2.223}
|
||||||
essql.port={{ .elasticsearch_port }}
|
essql.port=9200
|
||||||
essql.username=${OPENSEARCH_USER:{{ .elasticsearch_username }}}
|
essql.username=${OPENSEARCH_USER:admin}
|
||||||
essql.password=${OPENSEARCH_PASSWORD:{{ .elasticsearch_password }}}
|
essql.password=${OPENSEARCH_PASSWORD:dnZkaNVK}
|
||||||
essql.scheme=${OPENSEARCH_SCHEME:{{ .elasticsearch_scheme }}}
|
essql.scheme=${OPENSEARCH_SCHEME:https}
|
||||||
|
|
||||||
#get user config
|
#get user config
|
||||||
get_user_uri={}
|
get_user_uri={}
|
||||||
@@ -51,20 +47,20 @@ out.response.headers=Content-Type
|
|||||||
out.host=
|
out.host=
|
||||||
|
|
||||||
#xxljob
|
#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.port=9999
|
||||||
xxl.job.executor.appname={{ .artifactId }}
|
xxl.job.executor.appname=handeTest
|
||||||
xxl.job.executor.title={{ .artifactId }}
|
xxl.job.executor.title=handeTest
|
||||||
xxl.job.accessToken={{ .xxljob_accessToken }}
|
xxl.job.accessToken=default_token
|
||||||
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:{{ .xxljob_username }}}
|
xxl.job.admin.username=${XXL_JOB_ADMIN_USER:admin}
|
||||||
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:{{ .xxljob_password }}}
|
xxl.job.admin.password=${XXL_JOB_ADMIN_PASSWORD:123456}
|
||||||
|
|
||||||
#redis
|
#redis
|
||||||
redis-config.pool.hostAndPort=${REDIS_HOST:{{ .redis_address }}}
|
redis-config.pool.hostAndPort=${REDIS_HOST:redis.byteawake.com:6379}
|
||||||
redis-config.pool.password=${REDIS_PASSWORD:{{ .redis_password }}}
|
redis-config.pool.password=${REDIS_PASSWORD:}
|
||||||
redis-config.pool.maxTotal={{ .redis_maxTotal }}
|
redis-config.pool.maxTotal=100
|
||||||
redis-config.pool.maxIdle={{ .redis_maxIdle }}
|
redis-config.pool.maxIdle=10
|
||||||
redis-config.pool.minIdle={{ .redis_minIdle }}
|
redis-config.pool.minIdle=10
|
||||||
redis-config.pool.maxWaitMillis=10000
|
redis-config.pool.maxWaitMillis=10000
|
||||||
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
redis-config.pool.softMinEvictableIdleTimeMillis=10000
|
||||||
redis-config.pool.testOnBorrow=true
|
redis-config.pool.testOnBorrow=true
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
spring.profiles.active=local
|
spring.profiles.active=local
|
||||||
envs=local,remote,online,custom
|
envs=local,remote,online,custom
|
||||||
|
spring.main.allow-bean-definition-overriding=true
|
||||||
project_id=${projectId}
|
project_id=${projectId}
|
||||||
project_name={{ .artifactId }}
|
project_name=handeTest
|
||||||
|
check=true
|
||||||
|
|||||||
725
template/pom.xml
725
template/pom.xml
@@ -1,284 +1,451 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
<parent>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<version>2.7.18</version>
|
||||||
<version>2.3.7.RELEASE</version>
|
<relativePath/>
|
||||||
<relativePath/>
|
<!-- lookup parent from repository -->
|
||||||
<!-- lookup parent from repository -->
|
</parent>
|
||||||
</parent>
|
<groupId>{{ .groupId }}</groupId>
|
||||||
|
<artifactId>{{ .artifactId }}</artifactId>
|
||||||
|
<version>{{ .version }}</version>
|
||||||
<groupId>{{ .groupId }}</groupId>
|
<packaging>pom</packaging>
|
||||||
<artifactId>{{ .artifactId }}</artifactId>
|
<properties>
|
||||||
<version>{{ .version }}</version>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<packaging>pom</packaging>
|
<maven.compiler.source>8</maven.compiler.source>
|
||||||
|
<maven.compiler.target>8</maven.compiler.target>
|
||||||
<properties>
|
<junit.version>4.12</junit.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<vs.common.util.version>1.2.2</vs.common.util.version>
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<vs.common.version>1.2.0</vs.common.version>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version>
|
||||||
<junit.version>4.12</junit.version>
|
<lombok.version>1.18.20</lombok.version>
|
||||||
<vs.common.util.version>1.2.2</vs.common.util.version>
|
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
|
||||||
<vs.common.version>1.2.0</vs.common.version>
|
<logback.classic.version>1.2.3</logback.classic.version>
|
||||||
<ox.sprintboot.web.starter.version>1.0-SNAPSHOT</ox.sprintboot.web.starter.version>
|
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
|
||||||
<lombok.version>1.18.20</lombok.version>
|
<flyway.version>5.2.4</flyway.version>
|
||||||
<javax.annotation.api.version>1.3.2</javax.annotation.api.version>
|
<vs.common.rpc.version>1.3.0-SNAPSHOT</vs.common.rpc.version>
|
||||||
<logback.classic.version>1.2.3</logback.classic.version>
|
<vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring>
|
||||||
<log4j.version>2.23.1</log4j.version>
|
<vs.mock.spring>1.0.0-SNAPSHOT</vs.mock.spring>
|
||||||
<ox.basidc.common>1.0-SNAPSHOT</ox.basidc.common>
|
<vs.elasticsearch.version>1.0.0-SNAPSHOT</vs.elasticsearch.version>
|
||||||
<flyway.version>5.2.4</flyway.version>
|
<org.hibernate.core>5.5.7.Final</org.hibernate.core>
|
||||||
<vs.common.rpc.version>1.3.0-SNAPSHOT</vs.common.rpc.version>
|
<vs.bo.common>1.0-SNAPSHOT</vs.bo.common>
|
||||||
<vs.sqlmapper.spring>1.0.0-SNAPSHOT</vs.sqlmapper.spring>
|
<cn.hutool.all>5.7.4</cn.hutool.all>
|
||||||
<vs.mock.spring>1.0.0-SNAPSHOT</vs.mock.spring>
|
<vs.debug.version>1.0.0-SNAPSHOT</vs.debug.version>
|
||||||
<vs.elasticsearch.version>1.0.0-SNAPSHOT</vs.elasticsearch.version>
|
<javax.persistence-api>2.2</javax.persistence-api>
|
||||||
<org.hibernate.core>5.5.7.Final</org.hibernate.core>
|
<elasticsearch.version>7.3.1</elasticsearch.version>
|
||||||
<vs.bo.common>1.0-SNAPSHOT</vs.bo.common>
|
<dist.version>1.2.2</dist.version>
|
||||||
<cn.hutool.all>5.7.4</cn.hutool.all>
|
<libawall.version>2.2.0.RELEASE</libawall.version>
|
||||||
<vs.debug.version>1.0.0-SNAPSHOT</vs.debug.version>
|
<toco.version>1.0.0-SNAPSHOT</toco.version>
|
||||||
<javax.persistence-api>2.2</javax.persistence-api>
|
</properties>
|
||||||
<elasticsearch.version>7.3.1</elasticsearch.version>
|
<dependencies>
|
||||||
<dist.version>1.2.2</dist.version>
|
<dependency>
|
||||||
{{- if eq .dbType "mysql" }}
|
<groupId>org.springframework.boot</groupId>
|
||||||
{{- else if eq .dbType "postgresql" }}
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
<postgresql.version>42.6.2</postgresql.version>
|
</dependency>
|
||||||
{{- end }}
|
<!-- <dependency>-->
|
||||||
</properties>
|
<!-- <groupId>org.springframework.boot</groupId>-->
|
||||||
|
<!-- <artifactId>spring-boot-autoconfigure</artifactId>-->
|
||||||
|
<!-- <version>2.7.18</version>-->
|
||||||
|
<!-- </dependency>-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.esotericsoftware</groupId>
|
||||||
|
<artifactId>kryo</artifactId>
|
||||||
|
<version>5.5.0</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mybatis</groupId>
|
||||||
|
<artifactId>mybatis-spring</artifactId>
|
||||||
|
<version>2.0.3</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.mybatis</groupId>
|
||||||
|
<artifactId>mybatis</artifactId>
|
||||||
|
<version>3.5.3</version>
|
||||||
|
</dependency>
|
||||||
|
<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-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>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
<groupId>cn.hutool</groupId>
|
||||||
<artifactId>log4j-api</artifactId>
|
<artifactId>hutool-all</artifactId>
|
||||||
</dependency>
|
<version>${cn.hutool.all}</version>
|
||||||
<dependency>
|
</dependency>
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
<dependency>
|
||||||
<artifactId>log4j-core</artifactId>
|
<groupId>javax.persistence</groupId>
|
||||||
</dependency>
|
<artifactId>javax.persistence-api</artifactId>
|
||||||
<dependency>
|
<version>${javax.persistence-api}</version>
|
||||||
<groupId>org.springframework.boot</groupId>
|
</dependency>
|
||||||
<artifactId>spring-boot-starter-test</artifactId>
|
<dependency>
|
||||||
</dependency>
|
<groupId>org.hibernate</groupId>
|
||||||
<dependency>
|
<artifactId>hibernate-core</artifactId>
|
||||||
<groupId>com.vs</groupId>
|
<version>${org.hibernate.core}</version>
|
||||||
<artifactId>ox-bo-common</artifactId>
|
</dependency>
|
||||||
<version>${vs.bo.common}</version>
|
<dependency>
|
||||||
</dependency>
|
<groupId>com.vs</groupId>
|
||||||
<dependency>
|
<artifactId>ox-bo-common</artifactId>
|
||||||
<groupId>com.vs</groupId>
|
<version>${vs.bo.common}</version>
|
||||||
<artifactId>common-rpc</artifactId>
|
</dependency>
|
||||||
<version>${vs.common.rpc.version}</version>
|
<dependency>
|
||||||
</dependency>
|
<groupId>org.springframework.boot</groupId>
|
||||||
{{- if eq .dbType "mysql" }}
|
<artifactId>spring-boot-dependencies</artifactId>
|
||||||
{{- else if eq .dbType "postgresql" }}
|
<version>2.6.2</version>
|
||||||
<dependency>
|
<type>pom</type>
|
||||||
<groupId>org.postgresql</groupId>
|
<scope>import</scope>
|
||||||
<artifactId>postgresql</artifactId>
|
</dependency>
|
||||||
</dependency>
|
<dependency>
|
||||||
{{- end }}
|
<groupId>junit</groupId>
|
||||||
<!-- uncomment to enable livereload
|
<artifactId>junit</artifactId>
|
||||||
<dependency>
|
<version>${junit.version}</version>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<scope>test</scope>
|
||||||
<artifactId>spring-boot-devtools</artifactId>
|
</dependency>
|
||||||
</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>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>
|
||||||
|
<version>${vs.sqlmapper.spring}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.vs</groupId>
|
||||||
|
<artifactId>vs-elasticsearch</artifactId>
|
||||||
|
<version>${vs.elasticsearch.version}</version>
|
||||||
|
</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>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.vs</groupId>
|
||||||
|
<artifactId>vs.common.util</artifactId>
|
||||||
|
<version>${vs.common.util.version}</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
<dependencyManagement>
|
<build>
|
||||||
<dependencies>
|
<plugins>
|
||||||
<dependency>
|
<plugin>
|
||||||
<groupId>cn.hutool</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>hutool-all</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>${cn.hutool.all}</version>
|
<version>3.3.1</version>
|
||||||
</dependency>
|
<configuration>
|
||||||
<dependency>
|
<encoding>UTF-8</encoding>
|
||||||
<groupId>javax.persistence</groupId>
|
</configuration>
|
||||||
<artifactId>javax.persistence-api</artifactId>
|
</plugin>
|
||||||
<version>${javax.persistence-api}</version>
|
</plugins>
|
||||||
</dependency>
|
</build>
|
||||||
<dependency>
|
<distributionManagement>
|
||||||
<groupId>org.hibernate</groupId>
|
<repository>
|
||||||
<artifactId>hibernate-core</artifactId>
|
<id>zeroware-maven-releases</id>
|
||||||
<version>${org.hibernate.core}</version>
|
<url>https://repo.byteawake.com/repository/zeroware-maven-releases/</url>
|
||||||
</dependency>
|
</repository>
|
||||||
<dependency>
|
<snapshotRepository>
|
||||||
<groupId>com.vs</groupId>
|
<id>zeroware-maven-snapshots</id>
|
||||||
<artifactId>ox-bo-common</artifactId>
|
<url>https://repo.byteawake.com/repository/zeroware-maven-snapshots/</url>
|
||||||
<version>${vs.bo.common}</version>
|
</snapshotRepository>
|
||||||
</dependency>
|
</distributionManagement>
|
||||||
<dependency>
|
<modules>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<module>entrance</module>
|
||||||
<artifactId>spring-boot-dependencies</artifactId>
|
<module>common</module>
|
||||||
<version>2.6.2</version>
|
</modules>
|
||||||
<type>pom</type>
|
|
||||||
<scope>import</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>junit</groupId>
|
|
||||||
<artifactId>junit</artifactId>
|
|
||||||
<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>
|
|
||||||
</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>
|
|
||||||
<version>${vs.sqlmapper.spring}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.vs</groupId>
|
|
||||||
<artifactId>vs-elasticsearch</artifactId>
|
|
||||||
<version>${vs.elasticsearch.version}</version>
|
|
||||||
</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>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.vs</groupId>
|
|
||||||
<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>
|
|
||||||
<version>3.3.1</version>
|
|
||||||
<configuration>
|
|
||||||
<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>
|
|
||||||
<url>https://repo.byteawake.com/repository/zeroware-maven-releases/</url>
|
|
||||||
</repository>
|
|
||||||
<snapshotRepository>
|
|
||||||
<id>zeroware-maven-snapshots</id>
|
|
||||||
<url>https://repo.byteawake.com/repository/zeroware-maven-snapshots/</url>
|
|
||||||
</snapshotRepository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<modules>
|
|
||||||
<module>entrance</module>
|
|
||||||
<module>common</module>
|
|
||||||
</modules>
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
id={{ .projectId }}
|
id=8347572c-b33f-4888-b1bf-cc9149fff6f7
|
||||||
name={{ .projectName | replace "-" "_" }}
|
name=hande_test
|
||||||
version={{ .vsVersion }}
|
version=1.0.0
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
@echo off
|
|
||||||
cd /d %~dp0
|
|
||||||
|
|
||||||
.\mvnw.cmd -Dstyle.color=always spring-boot:run %*
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cd $(dirname $0)
|
|
||||||
|
|
||||||
./mvnw -Dstyle.color=always spring-boot:run $@
|
|
||||||
Reference in New Issue
Block a user