Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Spring 4 with Jdk 6

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm trying to use spring 4 MVC java based configuration to upgrade my web application. Due to other constraints, I can not use latest version of jdk. Can you tell me if spring's java based configuration (annotations) works with jdk 1.6? I believe jdk 1.6 is what supported with websphere (WAS 7).
 
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like, according to this post https://spring.io/blog/2015/04/03/how-spring-achieves-compatibility-with-java-6-7-and-8 Spring 4 will work with Java 6, 7 or 8.
I suspect that you won't get access to some of the newer features and enhancements using Java 6 and some libraries, third party or otherwise may not work right out of the box with Java 6.
 
santosh batta
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you. Yeah, I agree I can't use new features with jdk 6 but thanks, this will do.
 
Sheriff
Posts: 4868
317
IntelliJ IDE Python Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be careful if you have any Spring MVC Controllers that are not using annotations where your Controller class extends Spring's "AbstractController" class (or similar) because Spring 4 removed a bunch of those classes. I had this fun last year.
 
Pete Letkeman
Bartender
Posts: 1868
81
Android IntelliJ IDE MySQL Database Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome. I glad I was able to help you out, and remember all we are all in this together.
 
I found a beautiful pie. And a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic