Skip to content

Commit

Permalink
Merge pull request #220 from swm-standard/seyeon/swm-180
Browse files Browse the repository at this point in the history
HOTFIX: characterEncodingFilter 오류
  • Loading branch information
adorableco authored Sep 14, 2024
2 parents 0506fa6 + 29452a7 commit ded3305
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 ded3305

Please sign in to comment.