Skip to content

A mock car sales web app that would demonstate Spring MVC, Spring Security, Spring DAO (JDBC), Spring form validation etc.

Notifications You must be signed in to change notification settings

joerajeev/SpringDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Car sales web app that would demonstate Spring MVC, Spring Security, Spring DAO (JDBC), Spring form validation etc.

Examples of alternate (older) configuration methods are available in branches

  • pre-servlet-3.x : Initializing the web application with a web.xml
  • pre-annotation-config : Spring configurations though xml.

Authors

Setup

  • Build the project with mvn clean install
  • The application expects a datasource named "jdbc/carsalesdb". Configure this in your application/web server. For example:
       <Resource name="jdbc/carsalesdb" auth="Container" type="javax.sql.DataSource"
               maxActive="100" maxIdle="30" maxWait="10000"
               username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
               url="jdbc:mysql://localhost:3306/carsales"/>
  • Create the database using the scripts provided in resources/create_db.sql. It was created with MySQL workbench and may need tweaking to work with other DB's.
  • Deploy the application to the application/web server.

About

A mock car sales web app that would demonstate Spring MVC, Spring Security, Spring DAO (JDBC), Spring form validation etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published