You can upload your files and optionally publish some of them with a rich text description.
mvn spring-boot:run
Demo login:
User: admin
Pass: admin
- Login to access your files collection
- Upload file
- Delete file
- Download
- Filter your files by name
- Publish file with rich-text description
- Logout
- Download published file
Spring Boot Web Application.
- Templating engine: JSP.
- Build tool: maven.
- Database: embedded H2
Source walk-through:
src/main/java/
- Java sourcespl.lingaro.od.workshop.security.config.*
- Spring Security configpl.lingaro.od.workshop.security.data.*
- JPA entitiespl.lingaro.od.workshop.security.AppController
- one and only web controllerpl.lingaro.od.workshop.security.Application
- application'smain()
method
src/main/resources/application.properties
- Spring Boot configsrc/main/resources/data.sql
- initial database valuessrc/main/webapp/WEB-INF/tags/template.tag
- pages templatesrc/main/webapp/WEB-INF/jsp
- site pages. Using the template and values supplied by AppController viaModel
.