Skip to content

Commit

Permalink
hotfix : tomcat config error 해결 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
Dayon-Hong committed Jun 21, 2024
1 parent 435c780 commit 4c9a138
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
package com.teamjo.techeermarket.global.config;

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

@Configuration
public class TomcatConfig {

// 100 MB
@Bean
public WebServerFactoryCustomizer<TomcatServletWebServerFactory> customizer() {
return factory -> factory.addConnectorCustomizers(connector -> {
connector.setMaxPostSize(104857600); // 100MB로 설정
});
}

}
//package com.teamjo.techeermarket.global.config;
//
//import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
//import org.springframework.boot.web.server.WebServerFactoryCustomizer;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class TomcatConfig {
//
// // 100 MB
// @Bean
// public WebServerFactoryCustomizer<TomcatServletWebServerFactory> customizer() {
// return factory -> factory.addConnectorCustomizers(connector -> {
// connector.setMaxPostSize(104857600); // 100MB로 설정
// });
// }
//
//}

0 comments on commit 4c9a138

Please sign in to comment.