Coder Social home page Coder Social logo

springmvc-project's Introduction

Spring MVC simple project Flow: web.xml --> dispatcher-servlet.xml -->(data) controller --> (data)view pages --> Client

Steps for creating Spring MVC Project:

  1. Create a new Maven project with archtype webapp of springmvc
  2. Add server Download the server that you want Go to server window -> click on add servers -> select server name -> add the location of server and select the JRE version -> Shift you project to configured -> Finish
  3. Click on project's folder -> Build path -> Libraries -> Add library -> Server Runtime -> Select the server name
  4. Open pom.xml file Add "Spring web mvc" dependecy from mvn repository
  5. Edit the "web.xml" file Add the servlet name that will have the dispatcher servlets name in my case it is "nikita" and servlet base class(controller) Add the servlet mappings that will have the servlet name and url mappings(usually / for all the urls)
  6. Create dispatcher servlet xml file, in my case its "nikita-servlet.xml" file Add a bean tag to specify name spaces Add the base class where the controllers are placed Specify the annotation configuration Add a bean tag to specify add a "View Resolver" and settings such as prefix, suffix
  7. Add the view pages
  8. Add the controller classes

springmvc-project's People

Contributors

patilniki51 avatar dependabot[bot] avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.