Spring login form example

前端 未结 4 1730
無奈伤痛
無奈伤痛 2020-12-23 01:50

I tried searching in Google, but I could not find any good examples where a username and password are checked with a database for authentication purposes.

In further

4条回答
  •  别那么骄傲
    2020-12-23 02:39

    App-fuse will give you a full working example: http://appfuse.org/display/APF/AppFuse+QuickStart

    Or if you have maven installed simply run:

    mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-light-spring-security-archetype -DarchetypeVersion=2.1.0-M2 -DgroupId=com.mycompany -DartifactId=myproject
    

    This will generate an appfuse light project with spring mvc, spring security and hibernate.

提交回复
热议问题