Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Rest application in Spring 2.5 (java 6)

 
must Janik
Ranch Hand
Posts: 123
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys. I have a question regarding spring 2.5 (with java 6). I would like to rewrite web application based on REST which is written in newest version of Spring Boot.
The question is... is it even possible? I mean, I do not want to create any front (returning jsp files), just want to create backend.

Some sample from controller I want to rewrite:



As you can see I just return response in JSON. That's all I want. I read that I need some RestTemplate or something, but it is available since Spring 3.0, so I would need some custom mapper to return json, but it is not that hard I think.
Could you tell me whether is it possible to do it? All tutorials are about returning jsp files which I do not want.
Some sample of service/controller would be extremely useful for me if possible.
Thanks.
 
must Janik
Ranch Hand
Posts: 123
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To be clear.I want to rewrite application which is written in Spring Boot . I will have 2 application which are the same, but written in two different technologies. It is for my engineering thesis
 
reply
    Bookmark Topic Watch Topic
  • New Topic