Skip to content

Carac92/JavaDA_PROJECT7_RESTAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot

Technical:

  1. Framework: Spring Boot v2.0.4
  2. Java 8
  3. Thymeleaf
  4. Bootstrap v.4.3.1
  5. IMPORTANT : RUN ONLY WITH LIBERICA 1.8
  6. 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

  1. Create project from Initializr: File > New > project > Spring Initializr
  2. Add lib repository into pom.xml
  3. Add folders
    • Source root: src/main/java
    • View: src/main/resources
    • Static: src/main/resource/static
  4. Create database with name "demo" as configuration in application.properties
  5. Run sql script to create table doc/data.sql

Implement a Feature

  1. Create mapping domain class and place in package com.nnk.springboot.domain
  2. Create repository class and place in package com.nnk.springboot.repositories
  3. Create controller class and place in package com.nnk.springboot.controllers
  4. Create view files and place in src/main/resource/templates

Write Unit Test

  1. Create unit test and place in package com.nnk.springboot in folder test > java

Security

  1. Create user service to load user from database and place in package com.nnk.springboot.services
  2. Add configuration class and place in package com.nnk.springboot.config

About

Project 7 java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 89.2%
  • Java 6.3%
  • JavaScript 4.2%
  • CSS 0.3%