Skip to content

Instantly share code, notes, and snippets.

@Winged-Git
Winged-Git / BaseBeanConfig.java
Created October 22, 2020 05:07
外部Jar化したコード修正版(BaseApplicationConfig.javaに変更はなし)
import java.util.Locale;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;
import org.springframework.web.servlet.LocaleResolver;
import org.springframework.web.servlet.i18n.CookieLocaleResolver;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
@Winged-Git
Winged-Git / BaseApplicationConfig.java
Created October 22, 2020 04:42
外部Jar化したコードの一部。
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.i18n.LocaleChangeInterceptor;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
@Configuration
public class BaseApplicationConfig implements WebMvcConfigurer {