daily pastebin goal
73%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Controller
  2. @RequestMapping(value = "/query")
  3. public class QueryController extends AbstractController {
  4.  
  5.     public QueryController() {
  6.         ...
  7.     }
  8.  
  9.     @RequestMapping(method = RequestMethod.GET)
  10.     @ResponseBody
  11.     public SearchResult query(
  12.         return new PlainOldJavaObject();
  13.     }
  14. }
  15.    
  16. <mvc:annotation-driven/>
  17.    
  18. <dependency>
  19.     <groupId>org.codehaus.jackson</groupId>
  20.     <artifactId>jackson-core-asl</artifactId>
  21.     <version>${jackson.version}</version>
  22. </dependency>
  23. <dependency>
  24.     <groupId>org.codehaus.jackson</groupId>
  25.     <artifactId>jackson-mapper-asl</artifactId>
  26.     <version>${jackson.version}</version>
  27. </dependency>
  28.    
  29. $ mvn ant:ant
  30.    
  31. <pathelement location="${my.repo.local}/org/codehaus/jackson/jackson-core-asl/1.9.7/jackson-core-asl-1.9.7.jar"/>
  32. <pathelement location="${my.repo.local}/org/codehaus/jackson/jackson-mapper-asl/1.9.7/jackson-mapper-asl-1.9.7.jar"/>
  33.    
  34. <copy file="${my.repo.local}/org/codehaus/jackson/jackson-core-asl/1.9.7/jackson-core-asl-1.9.7.jar"
  35.     todir="${my.build.dir}/${my.build.finalName}/WEB-INF/lib"/>
  36. <copy file="${my.repo.local}/org/codehaus/jackson/jackson-mapper-asl/1.9.7/jackson-mapper-asl-1.9.7.jar"
  37.     todir="${my.build.dir}/${my.build.finalName}/WEB-INF/lib"/>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top