Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazuki43zoo/spring-security-app
Spring Security Sample Application with JavaConfig
https://github.com/kazuki43zoo/spring-security-app
Last synced: about 1 month ago
JSON representation
Spring Security Sample Application with JavaConfig
- Host: GitHub
- URL: https://github.com/kazuki43zoo/spring-security-app
- Owner: kazuki43zoo
- Created: 2015-03-21T07:23:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-28T14:44:24.000Z (over 9 years ago)
- Last Synced: 2024-04-14T04:44:14.422Z (7 months ago)
- Language: Java
- Homepage:
- Size: 227 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Security Sample Application with JavaConfig
This is a sample application using with Spring Security, Spring MVC and MyBatis3.
This application is configured using the JavaConfig mechanism of Servlet API and Spring Framework.* Spring Security : [3.2.5.RELEASE](http://docs.spring.io/spring-security/site/docs/3.2.5.RELEASE/reference/htmlsingle/) (Mainly)
* Spring MVC : [4.1.4.RELEASE](http://docs.spring.io/spring/docs/4.1.4.RELEASE/spring-framework-reference/htmlsingle/)
* MyBatis : [3.2.8](http://mybatis.github.io/mybatis-3/)
* And more ...> **Note:**
>
> The version of library except the MyBatis has been managed using [Spring IO Platform 1.1.1.RELEASE](http://docs.spring.io/platform/docs/1.1.1.RELEASE/reference/htmlsingle/).# How to build and run with the Tomcat
## Gradle
### Build only
```bash
$ gradle clean build
```### Build and run
```bash
$ gradle clean tomcatRun
```## Maven
### Build only
```bash
$ mvn clean package
```### Build and run
```bash
$ mvn clean tomcat7:run
```# How to access to the top page
Please access to the [http://localhost:8080/spring-security-app/](http://localhost:8080/spring-security-app/).
# Describe a configuration of web application
| Configuration Module | Description
| ---- | ---- |
| [`springsecurity.WebApplicationInitializer`](https://github.com/kazuki43zoo/spring-security-app/blob/master/src/main/java/springsecurity/WebApplicationInitializer.java) | This class is configure the global setting of web application (such as the Servlet Filter). |
| [`springsecurity.app.AppServletInitializer`](https://github.com/kazuki43zoo/spring-security-app/blob/master/src/main/java/springsecurity/app/AppServletInitializer.java) | This class is configure the servlet of screen flow processing. |
| [`springsecurity.api.ApiServletInitializer`](https://github.com/kazuki43zoo/spring-security-app/blob/master/src/main/java/springsecurity/api/ApiServletInitializer.java) | This class is configure the servlet of REST APIs processing. |
| [`web.xml`](https://github.com/kazuki43zoo/spring-security-app/blob/master/src/main/webapp/WEB-INF/web.xml) | This xml file is configure only the JSP setting. |