<commit_before># Java Spring Annotation Based Project with Custom Login(CSRF protected)

[![Build Status](https://travis-ci.org/dantullis/spring-login-annot.svg?branch=master)](https://travis-ci.org/dantullis/spring-login-annot)

This is a starter Java web application with JSP front-end. It is based on the newer [Spring][httpSpring.io] "Java config annotations", rather than XML configuration(or even the mixed "XML configuration with annotations"). 

This is a 100% starter. There is not even any stylesheet formatting.

### PROJECT ATTRIBUTES:
- In-memory authentication(later projects will show JDBC or LDAP authentication)
- Custom JSP login form
- Secure login and logout with CSRF protection
- Run project in light-weigth servlet contatiner in IDE
- Easily import project into [Spring Tool Suite][httpSpringToolSuite] IDE
- [Maven][httpMavenRepo] project eases dependency needs

### TOOLING REQUIREMENTS:
- Download and install the Java JDK. Not the SE or JRE versions.
- Download and install Spring Tool Suite. It is based on the Eclipse IDE

### TOOL DOWNLOAD URLs:
- Java JDK - (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
- STS IDE - (https://spring.io/tools/sts/all)

### SETUP WORKSPACE FOLDER
On your development machine create a new folder. Name it what you want but for this document it will be called `WORKSPACE_FOLDER`.

Now open Spring Tool Suite and create a new workspace. Point the workspace to the `WORKSPACE_FOLDER` listed above.

### PROJECT DOWNLOAD
Now you will download the project. You have two ways to do this. If you have a local installation of git, you can do it by simply cloning this repository:

```
    cd to WORKSPACE_FOLDER
    git clone https://github.com/dantullis/spring-login-annot.git
```

If you don't have git installed, you can download a `.zip` by pressing on the *Download zip* button in the upper side of this page. Download and unzip it to the `WORKSPACE_FOLDER`.

### IMPORT PROJECT INTO STS
- Open the Spring Tool Suite IDE.
- Select the workspace noted above location for this project.<commit_msg>clarify version<commit_after># Java Spring Annotation Based Project with Custom Login(CSRF protected)

[![Build Status](https://travis-ci.org/dantullis/spring-login-annot.svg?branch=master)](https://travis-ci.org/dantullis/spring-login-annot)

This is a starter Java web application with JSP front-end. It is based on the newer [Spring][httpSpring.io] "Java config annotations", rather than XML configuration(or even the mixed "XML configuration with annotations"). 

This is a 100% starter. There is not even any stylesheet formatting.

### PROJECT ATTRIBUTES:
- In-memory authentication(later projects will show JDBC or LDAP authentication)
- Custom JSP login form
- Secure login and logout with CSRF protection
- Run project in light-weigth servlet contatiner in IDE
- Easily import project into [Spring Tool Suite][httpSpringToolSuite] IDE
- [Maven][httpMavenRepo] project eases dependency needs

### TOOLING REQUIREMENTS:
- Download and install the Java JDK SE. Not the JRE version.
- Download and install Spring Tool Suite. It is based on the Eclipse IDE

### TOOL DOWNLOAD URLs:
- Java JDK - (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
- STS IDE - (https://spring.io/tools/sts/all)

### SETUP WORKSPACE FOLDER
On your development machine create a new folder. Name it what you want but for this document it will be called `WORKSPACE_FOLDER`.

Now open Spring Tool Suite and create a new workspace. Point the workspace to the `WORKSPACE_FOLDER` listed above.

### PROJECT DOWNLOAD
Now you will download the project. You have two ways to do this. If you have a local installation of git, you can do it by simply cloning this repository:

```
    cd to WORKSPACE_FOLDER
    git clone https://github.com/dantullis/spring-login-annot.git
```

If you don't have git installed, you can download a `.zip` by pressing on the *Download zip* button in the upper side of this page. Download and unzip it to the `WORKSPACE_FOLDER`.

### IMPORT PROJECT INTO STS
- Open the Spring Tool Suite IDE.
- Select the workspace noted above location for this project.
{'fraction_non_alphanumeric': 0.08, 'fraction_numerical': 0.0014457831325301205, 'mean_word_length': 4.383916990920882, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '998097', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1169, 'n_words': 531}