GithubHelp home page GithubHelp logo

springmvc-springsecurity-mysql-hibernate's Introduction

Spring Tutorial - 2

Some of the best practices SpringMVC and Spring Security with MySql Database. Used Apache Tiles for templates and Junit for test cases. Furthermore I added SpringWebFlow usage examples to this project.

  • Best practices of the using Spring Form Elements with JSP pages and MVC concepts.

  • Spring MVC pattern with service layer and controllers objects.

  • CRUD operation on the MySql with Hibernate and commented examples of jdbc queries

  • Best Practices of setting the Dispatcher Servlet together with web.xml.

  • Configuration of the Spring Security and Create authenticated pages like Login and Admin Pages.

  • Security-Context Integration for Create Secure Users at the Database with Authority Roles.


(this tutorial is using JNDI data source;

<jee:jndi-lookup id="dataSource" jndi-name="jdbc/SpringDB"
	expected-type="javax.sql.DataSource">
</jee:jndi-lookup> 

Next, modify $CATALINA_BASE/conf/server.xml to create the UserDatabase resource based on your XMl file. It should look something like this:

<Resource name="jdbc/SpringDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="root"
password="admin" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/springtutorial" />

example usage: add this codes to context.xml for Apache Tomcat


  • Provided Apache Tiles 2.2.2 Integration. So that application has better gui - with header-body-footer parts, anymore.

  • JUnit Test Cases and Log4j Properties were integrated. For testing case created 2 seperate datasource like dev and production. Attached SQL files for to be able to automatically generate production and test databases.

  • Hibernate integration is over. All of the DAO's are working with Hibernate and JPA. Also Dao Classes contains jdbc queries as a block comment as well, because of showing the differences between SQL and HQL.

  • Usage of the Ajax/JSON Http Request and jquery integration for effective pages. Spring Mail extension for mailing

springmvc-springsecurity-mysql-hibernate's People

Contributors

ogz00 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

leetoo

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.