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

How to import Spring MVC framework

 
Ranch Hand
Posts: 210
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I have an eclipse NEON 3 version 4.6.3, maven is already active and hibernate and junit.
my question is how can I import the framework <Spring MVC> in my project eclipse.
I start on spring MVC.
my working environment is: 64-bit Fedora, MySql 5.7 and Tomcat 8.5, hibernate 2.1,
junit 4.12, maven 3.5.2 as build tools.


Regards
Philippe
 
Ranch Hand
Posts: 49
Eclipse IDE MySQL Database Fedora
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the pom.xml dependencies to add use spring mvc framework.
 
Sheriff
Posts: 22567
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But use a more up-to-date version. Spring 4.1.6 is quite old, the latest 4.x version is 4.3.15. I suggest that, if you're starting a new project, you use Spring 5.x (latest: 5.0.5). Also check out http://mvnrepository.com/artifact/org.springframework/spring-webmvc for all available versions.

One more suggestion: use a property to specify the Spring version, that way you only need to define it once (and change it once to upgrade).
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Take source code and add it to your eclipse workspace.

Click on your project (Right Click) -> Debug As -> Debug Configuration -> Source Tab

Add one or more projects by click add button. Achives, Directories supported as well.

 
Rob Spoor
Sheriff
Posts: 22567
122
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you add a proper Maven dependency then a good IDE will automatically download the Spring source code from Maven Central. No need to do all that stuff manually.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic