feat: sql log format fix

main
minuk926 2 years ago
parent d47f6a54b6
commit 828a7e5ccc

@ -241,3 +241,51 @@ test {
exclude '**/*' exclude '**/*'
//useJUnitPlatform() //useJUnitPlatform()
} }
/*
def frontendDir = "../xit-opst-fo"
sourceSets {
main {
resources {
srcDirs = ["$projectDir/src/main/resources"]
}
}
}
processResources {
dependsOn "copyReactBuildFiles"
}
task installReact(type: Exec) {
workingDir "$frontendDir"
inputs.dir "$frontendDir"
group = BasePlugin.BUILD_GROUP
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
commandLine "npm.cmd", "audit", "fix"
commandLine 'npm.cmd', 'install'
} else {
commandLine "npm", "audit", "fix"
commandLine 'npm', 'install'
}
}
task buildReact(type: Exec) {
dependsOn "installReact"
workingDir "$frontendDir"
inputs.dir "$frontendDir"
group = BasePlugin.BUILD_GROUP
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
commandLine "npm.cmd", "run-script", "build"
} else {
commandLine "npm", "run-script", "build"
}
}
task copyReactBuildFiles(type: Copy) {
dependsOn "buildReact"
from "$frontendDir/build"
into "$buildDir/resources/main/static"
}
*/

@ -178,15 +178,15 @@ public class WebCommonConfig extends AsyncConfigurerSupport implements WebMvcCon
* *
* @see SecurityConfig#corsConfigurationSource() * @see SecurityConfig#corsConfigurationSource()
*/ */
@Override // @Override
public void addCorsMappings(CorsRegistry registry) { // public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**") // registry.addMapping("/**")
.allowedOrigins(corsProperties.getAllowedOrigins()) // .allowedOrigins(corsProperties.getAllowedOrigins())
.allowedMethods(corsProperties.getAllowedMethods()) // .allowedMethods(corsProperties.getAllowedMethods())
.allowedHeaders(corsProperties.getAllowedHeaders()) // .allowedHeaders(corsProperties.getAllowedHeaders())
.allowCredentials(true) // .allowCredentials(true)
.maxAge(3600); // .maxAge(3600);
} // }
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// yaml type Message loading // yaml type Message loading

@ -123,9 +123,10 @@ public class BasicSqlQuery implements SqlQuery {
@Override @Override
public String getQueryString() { public String getQueryString() {
SqlNode rootSqlNode = SimpleSqlNodeFactory.getSqlNode(element, parameterMap); SqlNode rootSqlNode = SimpleSqlNodeFactory.getSqlNode(element, parameterMap);
return rootSqlNode.getFullText().trim() return rootSqlNode.getFullText();
.replaceAll(System.lineSeparator(), " ") // return rootSqlNode.getFullText().trim()
.replaceAll(" +", " "); // .replaceAll(System.lineSeparator(), " ")
// .replaceAll(" +", " ");
} }
private String prevProcessValue(String value) { private String prevProcessValue(String value) {

@ -68,7 +68,7 @@ spring:
# Spring Security cors 설정 :: CorsConfiguration 설정 값 # Spring Security cors 설정 :: CorsConfiguration 설정 값
cors: cors:
allowed-origins: http://localhost:3000,http://localhost,http://211.119.124.107,http://211.119.124.107:3000 allowed-origins: https://fonts.gstatic.com,http://localhost:3000,http://localhost,http://211.119.124.107,http://211.119.124.107:3000
allowed-methods: GET,POST,PUT,DELETE,OPTIONS allowed-methods: GET,POST,PUT,DELETE,OPTIONS
allowed-headers: '*' allowed-headers: '*'
max-age: 3600 max-age: 3600

Loading…
Cancel
Save