Difference between revisions of "Spring 5 training (Spring guru) - personal notes"

Line 18: Line 18:
 
** Templates > Thymeleaf
 
** Templates > Thymeleaf
 
** Ops > actuator
 
** Ops > actuator
 +
 +
 +
 +
=How to run project=
 +
 +
Spring boot provides some out-of-the-box tools.
 +
 +
To run the application:
 +
<syntaxhighlight lang="bash">
 +
# Using the maven installation (outside the project)
 +
mvn spring-boot:run
 +
 +
# Using the embedded tool
 +
./mvnw spring-boot:run
 +
 +
</syntaxhighlight>
 +
  
  

Revision as of 21:22, 7 March 2018


I recently (2018) subscribe to an online training related to Spring 5 on Udemy. This page is a sum-up of my personal notes related to Spring 5.


Links

  • Spring initializr - to generate a quick start project based on the libraries you choose


Very simple web-application

  • Go to Spring initializr
  • Select
    • web > web
    • SQL > JPA
    • SQL > H2
    • Templates > Thymeleaf
    • Ops > actuator


How to run project

Spring boot provides some out-of-the-box tools.

To run the application:

# Using the maven installation (outside the project)
mvn spring-boot:run

# Using the embedded tool
./mvnw spring-boot:run


IntelliJ configuration

Useful plugings:

  • File > Settings > Plugins > Browse repositories
    • .ignore
    • Ideolog

Enable toolbars! View > Toolbar