feat: sql log format fix

main
minuk926 2 years ago
parent d47f6a54b6
commit 828a7e5ccc

@ -241,3 +241,51 @@ test {
exclude '**/*'
//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()
*/
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins(corsProperties.getAllowedOrigins())
.allowedMethods(corsProperties.getAllowedMethods())
.allowedHeaders(corsProperties.getAllowedHeaders())
.allowCredentials(true)
.maxAge(3600);
}
// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins(corsProperties.getAllowedOrigins())
// .allowedMethods(corsProperties.getAllowedMethods())
// .allowedHeaders(corsProperties.getAllowedHeaders())
// .allowCredentials(true)
// .maxAge(3600);
// }
//---------------------------------------------------------------------------
// yaml type Message loading

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

@ -68,7 +68,7 @@ spring:
# Spring Security cors 설정 :: CorsConfiguration 설정 값
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-headers: '*'
max-age: 3600

Loading…
Cancel
Save