first commit
parent
8039d0cfd4
commit
1376b9964d
@ -1,25 +1,35 @@
|
|||||||
# ---> Java
|
target/
|
||||||
# Compiled class file
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
*.class
|
|
||||||
|
|
||||||
# Log file
|
### STS ###
|
||||||
*.log
|
.apt_generated
|
||||||
|
.classpath
|
||||||
# BlueJ files
|
.factorypath
|
||||||
*.ctxt
|
.project
|
||||||
|
.settings
|
||||||
# Mobile Tools for Java (J2ME)
|
.springBeans
|
||||||
.mtj.tmp/
|
.sts4-cache
|
||||||
|
docus-services/docus-services-system1/
|
||||||
|
|
||||||
# Package Files #
|
### IntelliJ IDEA ###
|
||||||
*.jar
|
*.log
|
||||||
*.war
|
.idea
|
||||||
*.nar
|
*.iws
|
||||||
*.ear
|
*.iml
|
||||||
*.zip
|
*.ipr
|
||||||
*.tar.gz
|
mvnw*
|
||||||
*.rar
|
*.cmd
|
||||||
|
*.mvn
|
||||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
### NetBeans ###
|
||||||
hs_err_pid*
|
/nbproject/private/
|
||||||
|
/nbbuild/
|
||||||
|
/dist/
|
||||||
|
/nbdist/
|
||||||
|
/.nb-gradle/
|
||||||
|
build/
|
||||||
|
!**/src/main/**/build/
|
||||||
|
!**/src/test/**/build/
|
||||||
|
|
||||||
|
### VS Code ###
|
||||||
|
.vscode/
|
||||||
|
logs*
|
@ -0,0 +1,73 @@
|
|||||||
|
<assembly 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/assembly-1.0.0.xsd">
|
||||||
|
|
||||||
|
<id>exe</id>
|
||||||
|
<formats>
|
||||||
|
<format>dir</format>
|
||||||
|
</formats>
|
||||||
|
<includeBaseDirectory>false</includeBaseDirectory>
|
||||||
|
|
||||||
|
<fileSets>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/lib</outputDirectory>
|
||||||
|
<directory>${basedir}/target/lib</directory>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/config</outputDirectory>
|
||||||
|
<directory>${basedir}/target/resources</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>*.xml</include>
|
||||||
|
<include>*.yml</include>
|
||||||
|
<include>*.properties</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/dataConfig</outputDirectory>
|
||||||
|
<directory>${basedir}/target/dataConfig</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>*.json</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
<directory>${basedir}/target/resources/bin</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>*.bat</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
<directory>${basedir}/target/resources/bin</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>*.xml</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
|
||||||
|
<fileSet>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
<directory>${basedir}</directory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>*.exe</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
<!-- 将项目启动jar打包到boot目录中 -->
|
||||||
|
<fileSet>
|
||||||
|
<directory>${basedir}/target</directory>
|
||||||
|
<outputDirectory>/</outputDirectory>
|
||||||
|
<fileMode>0755</fileMode>
|
||||||
|
<includes>
|
||||||
|
<include>${project.build.finalName}.jar</include>
|
||||||
|
</includes>
|
||||||
|
</fileSet>
|
||||||
|
</fileSets>
|
||||||
|
</assembly>
|
@ -0,0 +1,19 @@
|
|||||||
|
package com.docus.server;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
//@EnableFeignClients(basePackages = ("com.feign"))
|
||||||
|
//@EnableHystrix
|
||||||
|
@SpringBootApplication(scanBasePackages ={"com.docus"})
|
||||||
|
public class AppRunBootstrap {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
|
||||||
|
SpringApplication.run(AppRunBootstrap.class,args);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
package com.docus.server.backup.controller;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.controller.param;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.controller.vo;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.infrastructure;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.infrastructure.cache;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.infrastructure.client;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.infrastructure.dao;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.service;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.backup.service.impl;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.inspection.controller;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.inspection.infrastructure;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,4 @@
|
|||||||
|
package com.docus.server.inspection.service;
|
||||||
|
|
||||||
|
public class Package {
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
for /f "delims=" %%t in ('winsw.exe status') do set str=%%t
|
||||||
|
echo %str%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if %str%==Started (
|
||||||
|
echo "restart....."
|
||||||
|
winsw stop
|
||||||
|
PING 127.0.0.1 -n 10 -w 30000 >NUL
|
||||||
|
winsw start
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if %str%==Stopped (
|
||||||
|
echo "start....."
|
||||||
|
winsw start
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
if %str%==NonExistent (
|
||||||
|
echo "deploy and start....."
|
||||||
|
winsw install
|
||||||
|
winsw start
|
||||||
|
echo c
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
|||||||
|
set java_opts=-Xms512m -Xmx512m
|
||||||
|
set key="java_opts"
|
||||||
|
|
||||||
|
|
||||||
|
rem 文件不存在,就跳过
|
||||||
|
if not exist java-ops.ini goto end
|
||||||
|
|
||||||
|
for /f "tokens=1,2 delims==" %%i in (java-ops.ini) do (
|
||||||
|
if "%%i"==%key% set java_opts=%%j)
|
||||||
|
echo java_opts is : %java_opts%
|
||||||
|
|
||||||
|
:end
|
||||||
|
|
||||||
|
rem 启动java
|
||||||
|
|
||||||
|
java %java_opts% -Dfile.encoding=utf-8 -jar -Dspring.profiles.active=@profile.name@ -Dloader.path=config,lib @project.build.finalName@.jar
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
for /f "delims=" %%t in ('winsw.exe status') do set str=%%t
|
||||||
|
echo %str%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if %str%==Started (
|
||||||
|
winsw stop
|
||||||
|
@echo wait program stop .....
|
||||||
|
PING 127.0.0.1 -n 30 -w 10000 >NUL
|
||||||
|
)
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set deployDir=%1\docus-backup-sys
|
||||||
|
if %deployDir%=="" set deployDir=d:\webroot\docus-backup-sys
|
||||||
|
|
||||||
|
set curr_file=%cd%
|
||||||
|
cd /d %deployDir%
|
||||||
|
call stop.bat
|
||||||
|
cd %curr_file%
|
||||||
|
sc query docus-backup-sys |Find "RUNNING" && ping 127.0.0.1 -n 10 >nul
|
||||||
|
rd/s/q %deployDir%\lib
|
||||||
|
rd/s/q %deployDir%\dataConfig
|
||||||
|
rd/s/q %deployDir%\config
|
||||||
|
del /s/q %deployDir%\*.jar
|
||||||
|
xcopy /Y/E/I * %deployDir%
|
||||||
|
|
||||||
|
cd /d %deployDir%
|
||||||
|
call install.bat
|
||||||
|
|
@ -0,0 +1,10 @@
|
|||||||
|
<service>
|
||||||
|
<id>docus-inspection</id>
|
||||||
|
<name>生产-嘉时采集器-管理</name>
|
||||||
|
<description>生产-嘉时采集器-管理</description>
|
||||||
|
<startmode>Automatic</startmode>
|
||||||
|
<executable>%BASE%\start.bat</executable>
|
||||||
|
<log mode="none"></log>
|
||||||
|
<depend>nacos</depend>
|
||||||
|
<depend>seata-server</depend>
|
||||||
|
</service>
|
@ -0,0 +1,68 @@
|
|||||||
|
server:
|
||||||
|
port: 9111
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: @artifactId@
|
||||||
|
datasource:
|
||||||
|
url: jdbc:log4jdbc:mysql://db.docus.cn:3306/docus_archivefile?autoReconnect=true&allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||||
|
username: docus
|
||||||
|
password: docus702
|
||||||
|
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
|
||||||
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
|
# 初始化配置
|
||||||
|
initial-size: 3
|
||||||
|
# 最小连接数
|
||||||
|
min-idle: 3
|
||||||
|
# 最大连接数
|
||||||
|
max-active: 15
|
||||||
|
# 获取连接超 时时间
|
||||||
|
max-wait: 5000
|
||||||
|
# 连接有效性检测时间
|
||||||
|
time-between-eviction-runs-millis: 90000
|
||||||
|
# 最大空闲时间
|
||||||
|
min-evictable-idle-time-millis: 1800000
|
||||||
|
test-while-idle: true
|
||||||
|
test-on-borrow: false
|
||||||
|
test-on-return: false
|
||||||
|
validation-query: select 1
|
||||||
|
|
||||||
|
redis:
|
||||||
|
host: redis.docus.cn
|
||||||
|
password: JSdocus@702
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: nacos.docus.cn
|
||||||
|
namespace: 34acdf7a-9fc6-4bbd-8aea-9a47c8007ad5
|
||||||
|
config:
|
||||||
|
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||||
|
namespace: 34acdf7a-9fc6-4bbd-8aea-9a47c8007ad5
|
||||||
|
file-extension: yml
|
||||||
|
shared-configs:
|
||||||
|
- comm.${spring.cloud.nacos.config.file-extension}
|
||||||
|
|
||||||
|
|
||||||
|
docus:
|
||||||
|
dbtype: mysql
|
||||||
|
|
||||||
|
mybatis-plus:
|
||||||
|
configuration:
|
||||||
|
map-underscore-to-camel-case: true
|
||||||
|
call-setters-on-nulls: true
|
||||||
|
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||||
|
global-config:
|
||||||
|
db-config:
|
||||||
|
field-strategy: NOT_EMPTY
|
||||||
|
db-type: MYSQL
|
||||||
|
xxl:
|
||||||
|
job:
|
||||||
|
accessToken:
|
||||||
|
admin:
|
||||||
|
addresses: http://job.docus.cn:8180/xxl-job-admin
|
||||||
|
executor:
|
||||||
|
appname: docus-inspection
|
||||||
|
address:
|
||||||
|
ip:
|
||||||
|
port: 17781
|
||||||
|
logretentiondays: 30
|
||||||
|
logpath: D:/xxl-job/inspection
|
@ -0,0 +1,2 @@
|
|||||||
|
# If you use SLF4J. First, you need to tell log4jdbc-log4j2 that you want to use the SLF4J logger
|
||||||
|
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator
|
Loading…
Reference in New Issue