You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run in command line if you have several JRE you can run the following command :
alias mvn2="JAVA_HOME=pathToLiberica1.8 mvn" and then you can run maven command with mvn2.
Setup with Intellij IDE
Create project from Initializr: File > New > project > Spring Initializr
Add lib repository into pom.xml
Add folders
Source root: src/main/java
View: src/main/resources
Static: src/main/resource/static
Create database with name "demo" as configuration in application.properties
Run sql script to create table doc/data.sql
Implement a Feature
Create mapping domain class and place in package com.nnk.springboot.domain
Create repository class and place in package com.nnk.springboot.repositories
Create controller class and place in package com.nnk.springboot.controllers
Create view files and place in src/main/resource/templates
Write Unit Test
Create unit test and place in package com.nnk.springboot in folder test > java
Security
Create user service to load user from database and place in package com.nnk.springboot.services
Add configuration class and place in package com.nnk.springboot.config