Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Upgrade to 4.0.3 and rever code commited in error
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoyanchev committed Apr 23, 2014
1 parent c7b9162 commit 92f5393
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<version>1.0.0-BUILD-SNAPSHOT</version>
<properties>
<java-version>1.7</java-version>
<org.springframework-version>4.0.1.RELEASE</org.springframework-version>
<org.springframework-version>4.0.3.RELEASE</org.springframework-version>
<org.springframework.security-version>3.2.0.RELEASE</org.springframework.security-version>
<org.aspectj-version>1.7.4</org.aspectj-version>
<org.slf4j-version>1.6.1</org.slf4j-version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,8 @@ public class MessageConvertersController {
}

@RequestMapping(value="/json", method=RequestMethod.GET)
public ResponseEntity<JavaBean> writeJson() {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.TEXT_PLAIN);
return new ResponseEntity<JavaBean>(new JavaBean("bar", "apple"), headers , HttpStatus.OK);
// return new JavaBean("bar", "apple");
public @ResponseBody JavaBean writeJson() {
return new JavaBean("bar", "apple");
}

// AtomFeedHttpMessageConverter (requires Rome on the classpath - useful for serving Atom feeds)
Expand Down

0 comments on commit 92f5393

Please sign in to comment.