DEV Community

Salad Lam
Salad Lam

Posted on

2

Spring boot example application: notice board

Notice

I wrote this article and was originally published on Qiita on 3 September 2019.


Objective

I write this application is for explain the mechanism of different component of Spring framework. This can also be used as playground for testing components of Spring Framework.

Function

  • Display notice on stated time
  • Approval before display
  • Multi language UI

Main component used

  • Spring Boot 2.1.X
  • Spring MVC 5.1.X with thymeleaf 3.0.X
  • Spring Security 5.1.X
  • Spring JDBC 5.1.X
  • Dozer 5.5.X

Database

Data stored in embedded H2 database. Schema and data is imported when application start and all data will be lost after application shutdown.

Prerequisite

  • Java SE Development Kit 8 or above
  • Internet connection

Compile and run

Apache Maven wrapper is included, no addition package manager is necessary.

Compile (On Microsoft Windows)

mvnw package
Enter fullscreen mode Exit fullscreen mode

Run (On Microsoft Windows)

mvnw spring-boot:run
Enter fullscreen mode Exit fullscreen mode

Open browser and enter "http://localhost:8080". Press Ctrl+C to stop.

Account

Username Password Authorities
user1 user1 USER
user2 user2 USER
admin admin USER, ADMIN

Source code

You may download source code from here.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay