You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.2 KiB
YAML

5 months ago
# Server configuration
server:
port: 8080
servlet:
context-path: /
encoding:
charset: UTF-8
enabled: true
force: true # 서버가 지정한 인코딩(UTF-8)을 항상 강제로 적용, 클라이언트의 요청과 상관없이 서버 인코딩이 우선
multipart:
max-file-size: 10MB
max-request-size: 50MB
Globals:
DbType: maria
# Common application properties
spring:
profiles:
active: prd
5 months ago
application:
name: IBMS-NEW
mvc:
view:
prefix: /WEB-INF/views/
suffix: .jsp
# MyBatis configuration
# MyBatis-Spring-Boot-Starter는 DataSource를 이용해 SqlSessionFactory 빈을 자동으로 생성
# SqlSessionFactory를 이용해 SqlSessionTemplate 빈을 생성
# 최종적으로 datasource 와 mybatis 연결
mybatis:
config-location: classpath:mybatis/mybatis-config.xml
mapper-locations: classpath:mybatis/mapper/**/*_${Globals.DbType}.xml
type-aliases-package: go.kr.project.**.model,egovframework.**.model
# Springdoc OpenAPI 설정
springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
operations-sorter: method
tags-sorter: alpha
display-request-duration: true
doc-expansion: none
filter: true
supportedSubmitMethods: [get, post]
cookie-auth-enabled: true # Swagger UI에서 세션 쿠키 인증 활성화 (springdoc 2.x)
use-cookie-auth: true # Swagger UI에서 인증 시 쿠키 사용 (springdoc 2.x)
init:
oauth2:
enabled: false
usePkceWithAuthorizationCodeGrant: false
packages-to-scan: go.kr.project
paths-to-match: /**
default-consumes-media-type: application/json
default-produces-media-type: application/json
model-converters:
pageable-converter:
enabled: true
# Login configuration
login:
url: /login/login.do # 로그인 페이지 URL (공통으로 사용)
lock:
count: 5 # 비밀번호 잠김 최종 카운트 (0일 경우 잠김 로직 pass)
DefaultPassword: ibmspassword # 초기 비밀번호, 초기화 비밀번호
allowMultipleLogin: true # 동시 접속 가능 여부 (true: 가능, false: 불가능)
# Query executor configuration
query-executor:
transaction:
timeout-minutes: 5 # 트랜잭션 타임아웃 (분 단위, 기본값: 5분)
# Interceptor configuration
interceptor:
interceptorExclude:
- /login/** #로그인
- / #루트 페이지
- /.well-known/** #개발 툴
- /common/** #공통 조회, 코드 등
- /resources/** #web server 배포
- /css/** #css
- /img/** #images
- /js/** #js
- /xit/** #xit 자체 공통
- /plugins/** #jquery plugins
- /font/** #font page
- /error/** #에러 페이지
- /favicon.ico #파비콘
- /swagger-ui/** #Swagger UI
- /v3/api-docs/** #Swagger API 문서
refererExclude:
- /** #모두 승인 (개발 시에만)
- /login/** #로그인 관련 페이지
- / #루트 페이지
- /main.do #메인 페이지
- /error/** #에러 페이지
- /common/** #공통 페이지
- /swagger-ui/** #Swagger UI
- /v3/api-docs/** #Swagger API 문서