File tree Expand file tree Collapse file tree 6 files changed +129
-0
lines changed
DBMonitoringDownloaderApp Expand file tree Collapse file tree 6 files changed +129
-0
lines changed Original file line number Diff line number Diff line change 1+ /bin /
2+ /build /
3+ /logs /*
Original file line number Diff line number Diff line change 1+ buildscript {
2+ repositories {
3+ mavenCentral()
4+ }
5+ dependencies {
6+ classpath(" org.springframework.boot:spring-boot-gradle-plugin:2.6.4" )
7+ }
8+ }
9+
10+ plugins {
11+ id ' java'
12+ id ' org.springframework.boot' version ' 2.6.4'
13+ id ' io.spring.dependency-management' version ' 1.0.7.RELEASE'
14+ }
15+
16+ repositories {
17+ mavenCentral()
18+ }
19+
20+ dependencies {
21+ // Spring
22+ implementation group : ' org.springframework.boot' , name : ' spring-boot-starter-thymeleaf' , version : ' 2.6.4'
23+ implementation ' org.springframework.boot:spring-boot-starter-web'
24+
25+ // Logback
26+ implementation ' ch.qos.logback:logback-classic:1.2.3'
27+ }
28+
29+ group = ' DBMonitoringDownloaderApp'
30+ version = ' 0.0.1-SNAPSHOT'
31+ description = ' DBMonitoringDownloaderApp'
32+
33+ java. sourceCompatibility = JavaVersion . VERSION_15
34+ java. targetCompatibility = JavaVersion . VERSION_15
35+
36+ sourceSets. main. java. srcDirs = [' src/main/java' ]
37+ sourceSets. test. java. srcDirs = [' src/test/java' ]
38+
39+
40+ tasks. named(" bootRun" ) {
41+ mainClass = ' root.applications.Application'
42+ }
43+
44+ tasks. named(" bootJar" ) {
45+ mainClass = ' root.applications.Application'
46+ }
Original file line number Diff line number Diff line change 1+ spring :
2+ application :
3+ name : DBMonitoringDownloaderApp
4+ http :
5+ encoding :
6+ charset : UTF-8
7+ enabled : true
8+ force : true
9+ server :
10+ port : 8081
11+ servlet :
12+ context-path : /
13+
14+ logging :
15+ config : config/logback.xml
16+
17+ # logging:
18+ # level:
19+ # root: info
Original file line number Diff line number Diff line change 1+ spring :
2+ profiles :
3+ active : prod
4+ application :
5+ name : DBMonitoringDownloaderApp
6+ http :
7+ encoding :
8+ charset : UTF-8
9+ enabled : true
10+ force : true
11+ server :
12+ port : 8081
13+ servlet :
14+ context-path : /
15+
16+
17+ logging :
18+ config : config/logback.xml
19+
20+ # logging:
21+ # level:
22+ # root: info
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <configuration scan =" true" scanperiod =" 30 seconds" >
3+
4+ <property name =" LOG_PATTERN" value =" %date %level [%thread] %logger{10} [%file:%line] - %msg%n%ex{full}" />
5+ <property name =" LOG_PATTERN1" value =" %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n" />
6+ <property name =" LOG_PATTERN2" value =" %d{yyyy-MM-dd HH:mm:ss}[%-15thread] %-5level [%file:%line] - %msg%n%ex{full}" />
7+ <property name =" LOG_DIR" value =" ./logs" />
8+ <property name =" LOG_FILE" value =" agent" />
9+
10+ <appender name =" console"
11+ class=" ch.qos.logback.core.ConsoleAppender" >
12+ <encoder >
13+ <pattern >${LOG_PATTERN}</pattern >
14+ </encoder >
15+ </appender >
16+
17+ <appender name =" FILE" class =" ch.qos.logback.core.rolling.RollingFileAppender" >
18+ <file >${LOG_DIR}/${LOG_FILE}.log</file >
19+ <rollingPolicy
20+ class=" ch.qos.logback.core.rolling.TimeBasedRollingPolicy" >
21+ <!-- daily rollover -->
22+ <fileNamePattern >${LOG_FILE}.%d{yyyy-MM-dd}.gz</fileNamePattern >
23+
24+ <maxHistory >100</maxHistory >
25+ <totalSizeCap >500MB</totalSizeCap >
26+ </rollingPolicy >
27+ <encoder >
28+ <pattern >${LOG_PATTERN}</pattern >
29+ </encoder >
30+ </appender >
31+
32+ <logger name =" root" level =" info" >
33+ <appender-ref ref =" console" />
34+ <appender-ref ref =" FILE" />
35+ </logger >
36+
37+ </configuration >
Original file line number Diff line number Diff line change 11rootProject. name = ' DBMonitoring'
22
33include " :DBMonitoringWindowApp"
4+ include " :DBMonitoringDownloaderApp"
45
56project(" :DBMonitoringWindowApp" ). projectDir = file(" DBMonitoringWindowApp" )
7+ project(" :DBMonitoringDownloaderApp" ). projectDir = file(" DBMonitoringDownloaderApp" )
You can’t perform that action at this time.
0 commit comments