首页签出2023/07/24
commit
b578a5b250
@ -0,0 +1,35 @@
|
|||||||
|
target/
|
||||||
|
!.mvn/wrapper/maven-wrapper.jar
|
||||||
|
|
||||||
|
### STS ###
|
||||||
|
.apt_generated
|
||||||
|
.classpath
|
||||||
|
.factorypath
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
.springBeans
|
||||||
|
.sts4-cache
|
||||||
|
docus-services/docus-services-system1/
|
||||||
|
|
||||||
|
### IntelliJ IDEA ###
|
||||||
|
*.log
|
||||||
|
.idea
|
||||||
|
*.iws
|
||||||
|
*.iml
|
||||||
|
*.ipr
|
||||||
|
mvnw*
|
||||||
|
*.cmd
|
||||||
|
*.mvn
|
||||||
|
### NetBeans ###
|
||||||
|
/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,27 @@
|
|||||||
|
package com.docus.server.inspection.controller;
|
||||||
|
|
||||||
|
import com.docus.infrastructure.util.easyexcel.ExcelUtil;
|
||||||
|
import com.docus.infrastructure.web.api.CommonResult;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
public class TestController {
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping("upload")
|
||||||
|
public void upload(MultipartFile multipartFile){
|
||||||
|
List<Object> objects = ExcelUtil.readExcel(multipartFile, null);
|
||||||
|
System.out.println(objects);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping("test")
|
||||||
|
public CommonResult test(){
|
||||||
|
|
||||||
|
return CommonResult.success("");
|
||||||
|
}
|
||||||
|
}
|
@ -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,6 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
WinSW.exe status|findstr NonExistent && winsw install
|
||||||
|
|
||||||
|
WinSW.exe status|findstr stopped && winsw start
|
@ -0,0 +1,20 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set deployDir=%1\@project.artifactId@
|
||||||
|
if %deployDir%=="" set deployDir=d:\webroot\@project.artifactId@
|
||||||
|
|
||||||
|
set curr_file=%cd%
|
||||||
|
cd /d %deployDir%
|
||||||
|
call stop.bat
|
||||||
|
sc query @project.artifactId@ |Find "RUNNING" && ping 127.0.0.1 -n 10 >nul
|
||||||
|
cd %curr_file%
|
||||||
|
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 auto.bat
|
||||||
|
cd %curr_file%
|
||||||
|
|
@ -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,3 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
winsw stop
|
@ -0,0 +1,47 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
set curr_file=%cd%
|
||||||
|
|
||||||
|
set parentDir=%1
|
||||||
|
if %parentDir%=="" set deployDir=d:\webroot
|
||||||
|
|
||||||
|
|
||||||
|
set deployDir=%parentDir%\@project.artifactId@
|
||||||
|
|
||||||
|
set backupDir=%parentDir%\backup
|
||||||
|
|
||||||
|
set dateStr=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
|
||||||
|
|
||||||
|
|
||||||
|
cd /d %deployDir%
|
||||||
|
|
||||||
|
call stop.bat
|
||||||
|
sc query @project.artifactId@ |Find "RUNNING" && ping 127.0.0.1 -n 10 >nul
|
||||||
|
|
||||||
|
cd /d %parentDir%
|
||||||
|
|
||||||
|
xcopy /Y/E/I project.artifactId@\lib %backupDir%\%dateStr%\@project.artifactId@lib
|
||||||
|
xcopy /Y/E/I project.artifactId@\config %backupDir%\%dateStr%\@project.artifactId@config
|
||||||
|
xcopy /Y/E/I project.artifactId@\*.jar %backupDir%\%dateStr%\@project.artifactId@
|
||||||
|
xcopy /Y/E/I project.artifactId@\*.bat %backupDir%\%dateStr%\@project.artifactId@
|
||||||
|
xcopy /Y/E/I project.artifactId@\*.exe %backupDir%\%dateStr%\@project.artifactId@
|
||||||
|
xcopy /Y/E/I project.artifactId@\*.xml %backupDir%\%dateStr%\@project.artifactId@
|
||||||
|
|
||||||
|
|
||||||
|
cd %curr_file%
|
||||||
|
|
||||||
|
rd/s/q %deployDir%\lib
|
||||||
|
rd/s/q %deployDir%\config
|
||||||
|
del /s/q %deployDir%\*.jar
|
||||||
|
|
||||||
|
|
||||||
|
xcopy /Y/E/I lib %deployDir%\lib
|
||||||
|
xcopy /Y/E/I config %deployDir%\config
|
||||||
|
xcopy /Y/E/I *.jar %deployDir%
|
||||||
|
xcopy /Y/E/I *.bat %deployDir%
|
||||||
|
xcopy /Y/E/I *.exe %deployDir%
|
||||||
|
xcopy /Y/E/I *.xml %deployDir%
|
||||||
|
|
||||||
|
cd /d %deployDir%
|
||||||
|
call auto.bat
|
||||||
|
cd %curr_file%
|
@ -0,0 +1,10 @@
|
|||||||
|
<service>
|
||||||
|
<id>docus-spring-template</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,70 @@
|
|||||||
|
server:
|
||||||
|
port: 9
|
||||||
|
spring:
|
||||||
|
profiles:
|
||||||
|
active: dev
|
||||||
|
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: 123456
|
||||||
|
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