Init repo by mocking Spring Security
This commit is contained in:
parent
b2723cb4f6
commit
932d3643de
16 changed files with 92 additions and 33 deletions
34
.gitignore
vendored
34
.gitignore
vendored
|
@ -1,33 +1 @@
|
||||||
HELP.md
|
postgres/docker-compose.yml
|
||||||
target/
|
|
||||||
!.mvn/wrapper/maven-wrapper.jar
|
|
||||||
!**/src/main/**/target/
|
|
||||||
!**/src/test/**/target/
|
|
||||||
|
|
||||||
### STS ###
|
|
||||||
.apt_generated
|
|
||||||
.classpath
|
|
||||||
.factorypath
|
|
||||||
.project
|
|
||||||
.settings
|
|
||||||
.springBeans
|
|
||||||
.sts4-cache
|
|
||||||
|
|
||||||
### IntelliJ IDEA ###
|
|
||||||
.idea
|
|
||||||
*.iws
|
|
||||||
*.iml
|
|
||||||
*.ipr
|
|
||||||
|
|
||||||
### NetBeans ###
|
|
||||||
/nbproject/private/
|
|
||||||
/nbbuild/
|
|
||||||
/dist/
|
|
||||||
/nbdist/
|
|
||||||
/.nb-gradle/
|
|
||||||
build/
|
|
||||||
!**/src/main/**/build/
|
|
||||||
!**/src/test/**/build/
|
|
||||||
|
|
||||||
### VS Code ###
|
|
||||||
.vscode/
|
|
||||||
|
|
14
.vscode/launch.json
vendored
Normal file
14
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"type": "java",
|
||||||
|
"name": "Spring Boot-MarinescoApplication<marinesco>",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"mainClass": "ru.redrise.marinesco.MarinescoApplication",
|
||||||
|
"projectName": "marinesco",
|
||||||
|
"args": "",
|
||||||
|
"envFile": "${workspaceFolder}/.env"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"java.configuration.updateBuildConfiguration": "automatic"
|
||||||
|
}
|
22
HELP.md
Normal file
22
HELP.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Getting Started
|
||||||
|
|
||||||
|
### Reference Documentation
|
||||||
|
For further reference, please consider the following sections:
|
||||||
|
|
||||||
|
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
|
||||||
|
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/3.1.4/maven-plugin/reference/html/)
|
||||||
|
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/3.1.4/maven-plugin/reference/html/#build-image)
|
||||||
|
* [Spring Boot DevTools](https://docs.spring.io/spring-boot/docs/3.1.4/reference/htmlsingle/index.html#using.devtools)
|
||||||
|
* [Validation](https://docs.spring.io/spring-boot/docs/3.1.4/reference/htmlsingle/index.html#io.validation)
|
||||||
|
* [Spring Web Services](https://docs.spring.io/spring-boot/docs/3.1.4/reference/htmlsingle/index.html#io.webservices)
|
||||||
|
* [Thymeleaf](https://docs.spring.io/spring-boot/docs/3.1.4/reference/htmlsingle/index.html#web.servlet.spring-mvc.template-engines)
|
||||||
|
* [Spring Data JDBC](https://docs.spring.io/spring-boot/docs/3.1.4/reference/htmlsingle/index.html#data.sql.jdbc)
|
||||||
|
|
||||||
|
### Guides
|
||||||
|
The following guides illustrate how to use some features concretely:
|
||||||
|
|
||||||
|
* [Validation](https://spring.io/guides/gs/validating-form-input/)
|
||||||
|
* [Producing a SOAP web service](https://spring.io/guides/gs/producing-web-service/)
|
||||||
|
* [Handling Form Submission](https://spring.io/guides/gs/handling-form-submission/)
|
||||||
|
* [Using Spring Data JDBC](https://github.com/spring-projects/spring-data-examples/tree/master/jdbc/basics)
|
||||||
|
|
6
target/classes/application.yml
Normal file
6
target/classes/application.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
spring:
|
||||||
|
thymeleaf:
|
||||||
|
cache: false
|
||||||
|
datasource:
|
||||||
|
generate-unique-name: false
|
||||||
|
name: tacocloud
|
BIN
target/classes/ru/redrise/marinesco/MarinescoApplication.class
Normal file
BIN
target/classes/ru/redrise/marinesco/MarinescoApplication.class
Normal file
Binary file not shown.
BIN
target/classes/ru/redrise/marinesco/RootController.class
Normal file
BIN
target/classes/ru/redrise/marinesco/RootController.class
Normal file
Binary file not shown.
BIN
target/classes/ru/redrise/marinesco/User.class
Normal file
BIN
target/classes/ru/redrise/marinesco/User.class
Normal file
Binary file not shown.
BIN
target/classes/ru/redrise/marinesco/data/UserRepository.class
Normal file
BIN
target/classes/ru/redrise/marinesco/data/UserRepository.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
12
target/classes/templates/login.html
Normal file
12
target/classes/templates/login.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Marinesco</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to LOGIN PAGE</h1>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
22
target/classes/templates/registration.html
Normal file
22
target/classes/templates/registration.html
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Marinesco - registration form</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Register</h1>
|
||||||
|
<form method="POST" th:action="@{/register}" id="registerForm">
|
||||||
|
<label for="username">Username: </label>
|
||||||
|
<input type="text" name="username" /><br />
|
||||||
|
<label for="password">Password: </label>
|
||||||
|
<input type="password" name="password" /><br />
|
||||||
|
<label for="confirm">Confirm password: </label>
|
||||||
|
<input type="password" name="confirm" /><br />
|
||||||
|
<label for="displayname">Displayed name: </label>
|
||||||
|
<input type="text" name="fullname" /><br />
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
12
target/classes/templates/root.html
Normal file
12
target/classes/templates/root.html
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>Marinesco</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h1>Welcome to Marinesco</h1>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
Binary file not shown.
Loading…
Reference in a new issue