fix: SQL log 설정 정리
parent
5aaac94a5a
commit
fd05291916
@ -1,52 +0,0 @@
|
|||||||
#-----------------------------------------------------------------------
|
|
||||||
# JPA 설정
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
app:
|
|
||||||
# jpa 활성 여부
|
|
||||||
jpa:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
#spring:
|
|
||||||
# jpa:
|
|
||||||
# database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
|
||||||
# # 템플릿 view 화면의 렌더링이 끝날 때 까지 Lazy fetch 가 가능하도록 해주는 속성
|
|
||||||
# open-in-view: false
|
|
||||||
# generate-ddl: false
|
|
||||||
# show-sql: true
|
|
||||||
# properties:
|
|
||||||
# order_inserts: true
|
|
||||||
# order_updates: true
|
|
||||||
# default_batch_fetch_size: ${chunkSize:100}
|
|
||||||
# current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
|
|
||||||
# implicit_naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
|
|
||||||
# physical_naming_strategy: kr.xit.core.spring.config.support.LowercaseSnakePhysicalNamingStrategy
|
|
||||||
# hibernate:
|
|
||||||
# hbm2ddl:
|
|
||||||
# auto: none
|
|
||||||
# import_files_sql_extractor: org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor
|
|
||||||
# format_sql: true
|
|
||||||
# use_sql_comments: false
|
|
||||||
# jdbc:
|
|
||||||
# batch_size: 20
|
|
||||||
# lob:
|
|
||||||
# # postgres 사용시 createLob() 미구현 경고 삭제
|
|
||||||
# non_contextual_creation: true
|
|
||||||
# # Jdbc 환경구성을 하는 과정에서 Default Metadata를 사용할 지 여부
|
|
||||||
# temp:
|
|
||||||
# use_jdbc_metadata_defaults: false
|
|
||||||
|
|
||||||
# ==================================================================================================================
|
|
||||||
# JPA logging lib setting
|
|
||||||
# ==================================================================================================================
|
|
||||||
decorator:
|
|
||||||
datasource:
|
|
||||||
p6spy:
|
|
||||||
# profiles 별로 정의
|
|
||||||
#enable-logging: true
|
|
||||||
multiline: true
|
|
||||||
logging: slf4j
|
|
||||||
custom-appender-class: com.p6spy.engine.spy.appender.Slf4JLogger
|
|
||||||
log-format: com.xit.core.config.support.P6spySqlFormatConfiguration
|
|
||||||
tracing:
|
|
||||||
include-parameter-values: true
|
|
@ -1,101 +1,101 @@
|
|||||||
-- Autogenerated: do not edit this file
|
-- autogenerated: do not edit this file
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_INSTANCE (
|
create table batch_job_instance (
|
||||||
JOB_INSTANCE_ID BIGINT NOT NULL PRIMARY KEY ,
|
job_instance_id bigint not null primary key ,
|
||||||
VERSION BIGINT ,
|
version bigint ,
|
||||||
JOB_NAME VARCHAR(100) NOT NULL,
|
job_name varchar(100) not null,
|
||||||
JOB_KEY VARCHAR(32) NOT NULL,
|
job_key varchar(32) not null,
|
||||||
constraint JOB_INST_UN unique (JOB_NAME, JOB_KEY)
|
constraint job_inst_un unique (job_name, job_key)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_EXECUTION (
|
create table batch_job_execution (
|
||||||
JOB_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY ,
|
job_execution_id bigint not null primary key ,
|
||||||
VERSION BIGINT ,
|
version bigint ,
|
||||||
JOB_INSTANCE_ID BIGINT NOT NULL,
|
job_instance_id bigint not null,
|
||||||
CREATE_TIME DATETIME(6) NOT NULL,
|
create_time datetime(6) not null,
|
||||||
START_TIME DATETIME(6) DEFAULT NULL ,
|
start_time datetime(6) default null ,
|
||||||
END_TIME DATETIME(6) DEFAULT NULL ,
|
end_time datetime(6) default null ,
|
||||||
STATUS VARCHAR(10) ,
|
status varchar(10) ,
|
||||||
EXIT_CODE VARCHAR(2500) ,
|
exit_code varchar(2500) ,
|
||||||
EXIT_MESSAGE VARCHAR(2500) ,
|
exit_message varchar(2500) ,
|
||||||
LAST_UPDATED DATETIME(6),
|
last_updated datetime(6),
|
||||||
JOB_CONFIGURATION_LOCATION VARCHAR(2500) NULL,
|
job_configuration_location varchar(2500) null,
|
||||||
constraint JOB_INST_EXEC_FK foreign key (JOB_INSTANCE_ID)
|
constraint job_inst_exec_fk foreign key (job_instance_id)
|
||||||
references BATCH_JOB_INSTANCE(JOB_INSTANCE_ID)
|
references batch_job_instance(job_instance_id)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_EXECUTION_PARAMS (
|
create table batch_job_execution_params (
|
||||||
JOB_EXECUTION_ID BIGINT NOT NULL ,
|
job_execution_id bigint not null ,
|
||||||
TYPE_CD VARCHAR(6) NOT NULL ,
|
type_cd varchar(6) not null ,
|
||||||
KEY_NAME VARCHAR(100) NOT NULL ,
|
key_name varchar(100) not null ,
|
||||||
STRING_VAL VARCHAR(250) ,
|
string_val varchar(250) ,
|
||||||
DATE_VAL DATETIME(6) DEFAULT NULL ,
|
date_val datetime(6) default null ,
|
||||||
LONG_VAL BIGINT ,
|
long_val bigint ,
|
||||||
DOUBLE_VAL DOUBLE PRECISION ,
|
double_val double precision ,
|
||||||
IDENTIFYING CHAR(1) NOT NULL ,
|
identifying char(1) not null ,
|
||||||
constraint JOB_EXEC_PARAMS_FK foreign key (JOB_EXECUTION_ID)
|
constraint job_exec_params_fk foreign key (job_execution_id)
|
||||||
references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
|
references batch_job_execution(job_execution_id)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_STEP_EXECUTION (
|
create table batch_step_execution (
|
||||||
STEP_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY ,
|
step_execution_id bigint not null primary key ,
|
||||||
VERSION BIGINT NOT NULL,
|
version bigint not null,
|
||||||
STEP_NAME VARCHAR(100) NOT NULL,
|
step_name varchar(100) not null,
|
||||||
JOB_EXECUTION_ID BIGINT NOT NULL,
|
job_execution_id bigint not null,
|
||||||
START_TIME DATETIME(6) NOT NULL ,
|
start_time datetime(6) not null ,
|
||||||
END_TIME DATETIME(6) DEFAULT NULL ,
|
end_time datetime(6) default null ,
|
||||||
STATUS VARCHAR(10) ,
|
status varchar(10) ,
|
||||||
COMMIT_COUNT BIGINT ,
|
commit_count bigint ,
|
||||||
READ_COUNT BIGINT ,
|
read_count bigint ,
|
||||||
FILTER_COUNT BIGINT ,
|
filter_count bigint ,
|
||||||
WRITE_COUNT BIGINT ,
|
write_count bigint ,
|
||||||
READ_SKIP_COUNT BIGINT ,
|
read_skip_count bigint ,
|
||||||
WRITE_SKIP_COUNT BIGINT ,
|
write_skip_count bigint ,
|
||||||
PROCESS_SKIP_COUNT BIGINT ,
|
process_skip_count bigint ,
|
||||||
ROLLBACK_COUNT BIGINT ,
|
rollback_count bigint ,
|
||||||
EXIT_CODE VARCHAR(2500) ,
|
exit_code varchar(2500) ,
|
||||||
EXIT_MESSAGE VARCHAR(2500) ,
|
exit_message varchar(2500) ,
|
||||||
LAST_UPDATED DATETIME(6),
|
last_updated datetime(6),
|
||||||
constraint JOB_EXEC_STEP_FK foreign key (JOB_EXECUTION_ID)
|
constraint job_exec_step_fk foreign key (job_execution_id)
|
||||||
references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
|
references batch_job_execution(job_execution_id)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_STEP_EXECUTION_CONTEXT (
|
create table batch_step_execution_context (
|
||||||
STEP_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY,
|
step_execution_id bigint not null primary key,
|
||||||
SHORT_CONTEXT VARCHAR(2500) NOT NULL,
|
short_context varchar(2500) not null,
|
||||||
SERIALIZED_CONTEXT TEXT ,
|
serialized_context text ,
|
||||||
constraint STEP_EXEC_CTX_FK foreign key (STEP_EXECUTION_ID)
|
constraint step_exec_ctx_fk foreign key (step_execution_id)
|
||||||
references BATCH_STEP_EXECUTION(STEP_EXECUTION_ID)
|
references batch_step_execution(step_execution_id)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_EXECUTION_CONTEXT (
|
create table batch_job_execution_context (
|
||||||
JOB_EXECUTION_ID BIGINT NOT NULL PRIMARY KEY,
|
job_execution_id bigint not null primary key,
|
||||||
SHORT_CONTEXT VARCHAR(2500) NOT NULL,
|
short_context varchar(2500) not null,
|
||||||
SERIALIZED_CONTEXT TEXT ,
|
serialized_context text ,
|
||||||
constraint JOB_EXEC_CTX_FK foreign key (JOB_EXECUTION_ID)
|
constraint job_exec_ctx_fk foreign key (job_execution_id)
|
||||||
references BATCH_JOB_EXECUTION(JOB_EXECUTION_ID)
|
references batch_job_execution(job_execution_id)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
CREATE TABLE BATCH_STEP_EXECUTION_SEQ (
|
create table batch_step_execution_seq (
|
||||||
ID BIGINT NOT NULL,
|
id bigint not null,
|
||||||
UNIQUE_KEY CHAR(1) NOT NULL,
|
unique_key char(1) not null,
|
||||||
constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
|
constraint unique_key_un unique (unique_key)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
INSERT INTO BATCH_STEP_EXECUTION_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_STEP_EXECUTION_SEQ);
|
insert into batch_step_execution_seq (id, unique_key) select * from (select 0 as id, '0' as unique_key) as tmp where not exists(select * from batch_step_execution_seq);
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_EXECUTION_SEQ (
|
create table batch_job_execution_seq (
|
||||||
ID BIGINT NOT NULL,
|
id bigint not null,
|
||||||
UNIQUE_KEY CHAR(1) NOT NULL,
|
unique_key char(1) not null,
|
||||||
constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
|
constraint unique_key_un unique (unique_key)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
INSERT INTO BATCH_JOB_EXECUTION_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_EXECUTION_SEQ);
|
insert into batch_job_execution_seq (id, unique_key) select * from (select 0 as id, '0' as unique_key) as tmp where not exists(select * from batch_job_execution_seq);
|
||||||
|
|
||||||
CREATE TABLE BATCH_JOB_SEQ (
|
create table batch_job_seq (
|
||||||
ID BIGINT NOT NULL,
|
id bigint not null,
|
||||||
UNIQUE_KEY CHAR(1) NOT NULL,
|
unique_key char(1) not null,
|
||||||
constraint UNIQUE_KEY_UN unique (UNIQUE_KEY)
|
constraint unique_key_un unique (unique_key)
|
||||||
) ENGINE=InnoDB;
|
) engine=innodb;
|
||||||
|
|
||||||
INSERT INTO BATCH_JOB_SEQ (ID, UNIQUE_KEY) select * from (select 0 as ID, '0' as UNIQUE_KEY) as tmp where not exists(select * from BATCH_JOB_SEQ);
|
insert into batch_job_seq (id, unique_key) select * from (select 0 as id, '0' as unique_key) as tmp where not exists(select * from batch_job_seq);
|
||||||
|
@ -1,52 +0,0 @@
|
|||||||
#-----------------------------------------------------------------------
|
|
||||||
# JPA 설정
|
|
||||||
#-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
app:
|
|
||||||
# jpa 활성 여부
|
|
||||||
jpa:
|
|
||||||
enabled: false
|
|
||||||
|
|
||||||
#spring:
|
|
||||||
# jpa:
|
|
||||||
# database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
|
||||||
# # 템플릿 view 화면의 렌더링이 끝날 때 까지 Lazy fetch 가 가능하도록 해주는 속성
|
|
||||||
# open-in-view: false
|
|
||||||
# generate-ddl: false
|
|
||||||
# show-sql: true
|
|
||||||
# properties:
|
|
||||||
# order_inserts: true
|
|
||||||
# order_updates: true
|
|
||||||
# default_batch_fetch_size: ${chunkSize:100}
|
|
||||||
# current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
|
|
||||||
# implicit_naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
|
|
||||||
# physical_naming_strategy: kr.xit.core.spring.config.support.LowercaseSnakePhysicalNamingStrategy
|
|
||||||
# hibernate:
|
|
||||||
# hbm2ddl:
|
|
||||||
# auto: none
|
|
||||||
# import_files_sql_extractor: org.hibernate.tool.hbm2ddl.MultipleLinesSqlCommandExtractor
|
|
||||||
# format_sql: true
|
|
||||||
# use_sql_comments: false
|
|
||||||
# jdbc:
|
|
||||||
# batch_size: 20
|
|
||||||
# lob:
|
|
||||||
# # postgres 사용시 createLob() 미구현 경고 삭제
|
|
||||||
# non_contextual_creation: true
|
|
||||||
# # Jdbc 환경구성을 하는 과정에서 Default Metadata를 사용할 지 여부
|
|
||||||
# temp:
|
|
||||||
# use_jdbc_metadata_defaults: false
|
|
||||||
|
|
||||||
# ==================================================================================================================
|
|
||||||
# JPA logging lib setting
|
|
||||||
# ==================================================================================================================
|
|
||||||
decorator:
|
|
||||||
datasource:
|
|
||||||
p6spy:
|
|
||||||
# profiles 별로 정의
|
|
||||||
#enable-logging: true
|
|
||||||
multiline: true
|
|
||||||
logging: slf4j
|
|
||||||
custom-appender-class: com.p6spy.engine.spy.appender.Slf4JLogger
|
|
||||||
log-format: com.xit.core.config.support.P6spySqlFormatConfiguration
|
|
||||||
tracing:
|
|
||||||
include-parameter-values: true
|
|
Loading…
Reference in New Issue