Skip to content

Commit

Permalink
HOTFIX: characterEncodingFilter 오류
Browse files Browse the repository at this point in the history
  • Loading branch information
adorableco committed Sep 14, 2024
1 parent 0506fa6 commit 29452a7
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.swm_standard.phote.common.tomcat

import org.springframework.boot.web.embedded.tomcat.TomcatConnectorCustomizer
import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory
import org.springframework.boot.web.server.WebServerFactoryCustomizer
import org.springframework.context.annotation.Configuration

@Configuration
class TomcatWebCustomConfig : WebServerFactoryCustomizer<TomcatServletWebServerFactory> {
override fun customize(factory: TomcatServletWebServerFactory) {
factory.addConnectorCustomizers(
TomcatConnectorCustomizer { connector ->
connector.setProperty(
"relaxedQueryChars",
"<>[\\]^`{|}",
)
},
)
}
}

0 comments on commit 29452a7

Please sign in to comment.