Skip to content

Commit

Permalink
localeResolver 복원.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyohwan committed Sep 11, 2016
1 parent de15d6f commit 9cb9989
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package com.jakduk.api.configuration;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.MessageSource;
import org.springframework.context.annotation.*;
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
import org.springframework.core.io.FileSystemResource;
import org.springframework.http.MediaType;
import org.springframework.mobile.device.DeviceResolverHandlerInterceptor;
Expand Down Expand Up @@ -91,6 +89,11 @@ public void addCorsMappings(CorsRegistry registry) {
}
*/

@Bean
public LocaleResolver localeResolver() {
return new SessionLocaleResolver();
}

@Bean
public ViewResolver contentNegotiatingViewResolver(ContentNegotiationManager manager) {
List<ViewResolver> viewResolvers = new ArrayList<>();
Expand Down

0 comments on commit 9cb9989

Please sign in to comment.