Skip to content

Commit

Permalink
Updgrade to Spring 4.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dsyer committed Mar 28, 2014
1 parent 5645773 commit 5819960
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>4.0.2.RELEASE</spring.version>
<spring.security.version>3.2.2.RELEASE</spring.security.version>
<spring.version>4.0.3.RELEASE</spring.version>
<spring.security.version>3.2.3.RELEASE</spring.security.version>
<java.version>1.6</java.version>
</properties>

Expand Down
6 changes: 3 additions & 3 deletions samples/oauth2/sparklr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@
</dependency>

<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.3.1</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import org.springframework.web.servlet.view.ContentNegotiatingViewResolver;
import org.springframework.web.servlet.view.InternalResourceViewResolver;
import org.springframework.web.servlet.view.json.MappingJacksonJsonView;
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

@Configuration
@EnableWebMvc
Expand All @@ -47,12 +47,11 @@ public ContentNegotiatingViewResolver contentViewResolver() throws Exception {
viewResolver.setPrefix("/WEB-INF/jsp/");
viewResolver.setSuffix(".jsp");

MappingJacksonJsonView defaultView = new MappingJacksonJsonView();
MappingJackson2JsonView defaultView = new MappingJackson2JsonView();
defaultView.setExtractValueFromSingleKeyModel(true);

ContentNegotiatingViewResolver contentViewResolver = new ContentNegotiatingViewResolver();
contentViewResolver.setContentNegotiationManager(contentNegotiationManager.getObject());
contentViewResolver.setDefaultViews(Arrays.<View>asList(new MappingJacksonJsonView()));
contentViewResolver.setViewResolvers(Arrays.<ViewResolver>asList(viewResolver));
contentViewResolver.setDefaultViews(Arrays.<View>asList(defaultView));
return contentViewResolver;
Expand Down
1 change: 1 addition & 0 deletions spring-security-oauth/src/test/resources/data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select * from oauth_client_details;
1 change: 1 addition & 0 deletions spring-security-oauth2/src/test/resources/data.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select * from oauth_client_details;

0 comments on commit 5819960

Please sign in to comment.