Skip to content

Commit

Permalink
1차 릴리즈
Browse files Browse the repository at this point in the history
  • Loading branch information
MinKi-Yoo committed Dec 1, 2023
1 parent 3bdfe55 commit 0ce1123
Show file tree
Hide file tree
Showing 246 changed files with 6,860 additions and 171 deletions.
1 change: 1 addition & 0 deletions .gitgnore
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HELP.md
.gradle
.DS_Store
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
Expand Down
Binary file added .gradle/7.6/checksums/checksums.lock
Binary file not shown.
Binary file added .gradle/7.6/checksums/sha1-checksums.bin
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file added .gradle/7.6/executionHistory/executionHistory.lock
Binary file not shown.
Binary file added .gradle/7.6/fileChanges/last-build.bin
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/fileHashes.bin
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/fileHashes.lock
Binary file not shown.
Binary file added .gradle/7.6/fileHashes/resourceHashesCache.bin
Binary file not shown.
Empty file added .gradle/7.6/gc.properties
Empty file.
Binary file added .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
2 changes: 2 additions & 0 deletions .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Thu Oct 19 08:27:32 KST 2023
gradle.version=7.6
Binary file added .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file added .gradle/file-system.probe
Binary file not shown.
Empty file added .gradle/vcs-1/gc.properties
Empty file.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"java.configuration.updateBuildConfiguration": "interactive"
}
Empty file modified CODE_OF_CONDUCT.md
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
70 changes: 70 additions & 0 deletions bin/main/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#application server port 설정
server:
port: 8080

logging:
pattern:
level: "%5p [${spring.application.name},%X{trace_id},%X{span_id}]"

spring:
application:
name: appManager #application 이름 설정 ( 필수 : opentracing에도 사용 됨 )

#DB Connection 설정
datasource:
hikari:
username: #db user-name value 들어가야함.
password: #db password value 들어가야함.
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
jdbc-url: # {url}:{port}/{db schema}?serverTimeZone=UTC
idle-timeout: 250 #pool에서 일 안하는 커넥션 유지시간. ( default: 600000ms : 10min )
max-lifetime: 250 #connections pool에 있을 수 있는 최대 시간. ( 사용중인 connection은 제거되지 않음 , default:1800000ms : 30min )



#Actuator 사용 설정
management:
endpoints:
enabled-by-default: false #기본 enable로 설정되어 있는 값을 disable로 설정 ( 보안 처리를 위해 필요한곳만 enable 처리 )
web:
exposure:
include: info, health, metrics #보안처리
base-path: /mmpact
endpoint:
info:
enabled: true
health:
enabled: true
metrics:
enabled: true

#Jaeger 설정
# opentracing.jaeger.service-name 이 없을시 spring.application.name 으로 사용된다.
# tracing log의 header format을 정할 수 있음.
# - opentracing.jaeger.enable-b3-propagation = true ( B3 : zipkin collector 호환성 포맷 )
# - opentracing.jaeger.enable-w3c-propagation = true ( W3C Trace Context format )
opentracing:
jaeger:
udp-sender:
host: 210.217.178.128
port: 30689
const-sampler:
decision: true #모든 Trace가 sampled된다.
probabilistic-sampler:
sampling-rate: 1.0 #rate는 0.0(no sampling) 과 1.0(every request) 사이
enabled: true #Jaeger Tracing을 사용 여부 설정.


springdoc:
swagger-ui:
groups-order: desc #정렬 순서 정의
operations-sorter: method #명세서 안에 메소드 순으로 정렬
show-actuator: true #actuator uri 보여짐.
# api 명세서 scan 대상 ( package, uri path ) 설정 안하면 전체를 대상으로 스캔함.
# packages-to-scan:
# - kr.co.strato.mmpstartkit.controller
# paths-to-match:
# - /api/**



3 changes: 3 additions & 0 deletions bin/main/log4jdbc.log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#mybatis log4jdbc
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator
log4jdbc.dump.sql.maxlinelength=0
21 changes: 21 additions & 0 deletions bin/main/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{yyyy-MM-dd HH:mm:ss}:%-3relative][%thread] %green(%-5level) %logger{35} %cyan(%logger{15}) - %msg %n</pattern>
</encoder>
</appender>

<logger name="jdbc" level="OFF"/>

<logger name="jdbc.sqlonly" level="OFF"/>
<logger name="jdbc.sqltiming" level="INFO"/>
<logger name="jdbc.audit" level="OFF"/>
<logger name="jdbc.resultset" level="OFF"/>
<logger name="jdbc.resultsettable" level="INFO"/>
<logger name="jdbc.connection" level="OFF"/>

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
28 changes: 20 additions & 8 deletions build.gradle
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'm.cmp'
version = '0.0.1-SNAPSHOT'
version = 'v0.0.1'
sourceCompatibility = '11'

repositories {
Expand All @@ -16,22 +16,34 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// spring web mvc
implementation 'org.springframework.boot:spring-boot-starter-web'
// Jeager lib
implementation 'io.opentracing.contrib:opentracing-spring-jaeger-web-starter:3.3.1'
implementation 'io.opentracing.contrib:opentracing-spring-cloud-starter:0.5.9'

// spring docs swagger3.0
implementation 'org.springdoc:springdoc-openapi-ui:1.6.14'

// lombok
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'

// gitlab
implementation 'org.gitlab4j:gitlab4j-api:5.0.1'
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.13.1.202206130422-r'

//http ssl
implementation 'org.apache.httpcomponents:httpclient:4.5.12'

// org.json
implementation 'org.json:json:20220924'

// org.apache.commons
implementation 'org.apache.commons:commons-collections4:4.0'

testImplementation 'org.springframework.boot:spring-boot-starter-test'

implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.3.0'
implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:1.16'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'


implementation 'org.springframework.boot:spring-boot-starter-security'


}

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
58 changes: 58 additions & 0 deletions build/resources/main/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
server:
port: 18085

logging:
pattern:
level: "%5p [${spring.application.name},%X{trace_id},%X{span_id}]"

spring:
application:
name: appManager

# datasource:
# hikari:
# username: ${DB_USER_NAME}
# password: ${DB_PWD}
# driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
# jdbc-url: "jdbc:mariadb://${DB_URL:localhost:3306}/mcmp?characterEncoding=UTF-8&serverTimezone=UTC&autoReconnect=true&useSSL=false"
# idle-timeout: 250
# max-lifetime: 250
datasource:
hikari:
username: root
password: roqkftpsxj12#$
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
jdbc-url: jdbc:mariadb://10.10.30.28:13306/m-cmp?characterEncoding=UTF-8&serverTimezone=UTC&autoReconnect=true&useSSL=false
idle-timeout: 250
max-lifetime: 250


management:
endpoints:
enabled-by-default: false
web:
exposure:
include: info, health
base-path: /mmpact
endpoint:
info:
enabled: true
health:
enabled: true

springdoc:
swagger-ui:
groups-order: desc
operations-sorter: method
show-actuator: false

## ArgoCd
argocd:
project:
name: m-cmp

aes:
key: fb1755281b0ca6184a0ee644e6477ee7



3 changes: 3 additions & 0 deletions build/resources/main/log4jdbc.log4j2.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#mybatis log4jdbc
log4jdbc.spylogdelegator.name=net.sf.log4jdbc.log.slf4j.Slf4jSpyLogDelegator
log4jdbc.dump.sql.maxlinelength=0
21 changes: 21 additions & 0 deletions build/resources/main/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{yyyy-MM-dd HH:mm:ss}:%-3relative][%thread] %green(%-5level) %logger{35} %cyan(%logger{15}) - %msg %n</pattern>
</encoder>
</appender>

<logger name="jdbc" level="OFF"/>

<logger name="jdbc.sqlonly" level="OFF"/>
<logger name="jdbc.sqltiming" level="INFO"/>
<logger name="jdbc.audit" level="OFF"/>
<logger name="jdbc.resultset" level="OFF"/>
<logger name="jdbc.resultsettable" level="INFO"/>
<logger name="jdbc.connection" level="OFF"/>

<root level="INFO">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Loading

0 comments on commit 0ce1123

Please sign in to comment.