Skip to content

djnzx/spring-steps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The step-by-step guide for SpringBoot and Spring

Initially based on the students' questions during conducting Java BootCamp in IBA Tech Academy

Prerequisites

  • Java Core
  • Java 8
  • OOP
  • Maven
  • ...
  • a bit of a life experience and patience :)

Content

  • please see corresponding readme.md files in appropriate sub-folders
  • step0 :: intro to spring
  • step01 :: request mapping
  • step02 :: thymeleaf template engine
  • step03 :: parameters binding (request param, request body, path fragment)

...

  • step05 :: application structure, dependency injection 3 different ways
  • step06 :: consuming POST
    • Params
    • Http Forms
    • JSON body
    • File Uploading
    • File Downloading

...

  • step08 :: redirect different ways, passing data

...

  • step10 :: Heroku deployment (actually separate project)
  • step11 :: Exceptions handling

...

  • step13 :: HttpSession #1 - Basics + Attributes + Spring.
  • step14 :: HttpSession #2 - Real Word example.
  • step15 :: HttpSession $3 - Spring MVC + Spring Data. Example from Book "Spring in Action".

...

  • step20 :: validation: form validation. dto validation. programmatic validation. custom validation
  • step21 :: spring data. basics. intro
  • step22 :: spring data. relations. 1:1 (1 Person entity has a relation with 1 Extra entity)
  • step22a :: implementation via FK
  • step22b :: implementation via shared PK
  • step22c :: implementation via 3rd table
  • step23 :: spring data. relations. 1:N (1 Person entity has a relation with N Phone entity)
  • step23a :: implementation via FK
  • step23b :: implementation via 3rd table
  • step24 :: spring data. relations. M:N (M Author entities have a relations with N Book entities) implementation via 3rd table
  • step24a :: bidirectional (authors >-< books) via one reference table
  • step24b :: unidirectional (author -< books + authors >- book) via two reference tables
  • step24d :: spring data. relations. M:N. working with data. (insertion data/relation, deletion data/relations)
  • step24e :: spring data. relations. M:N. working with data. (data selection)
  • step26a :: spring data. metadata/data initialization by JPA (schema.sql + data.sql)
  • step26b :: spring data. metadata/data manage by liquibase

...

  • step29 :: parsing with JSoup
  • step30s :: HttpRequest by Spring RestTemplate. Server
  • step30c :: HttpRequest by Spring RestTemplate. Client
  • step30fc :: Client. SpringCloud. FeignClient
  • step31 :: Spring Security. intro.
  • step32 :: Spring Security. dependency.
  • step33 :: Spring Security. users hardcoded.
  • step34 :: Spring Security. users in the class.
  • step35 :: Spring Security. users in the class. password encoded.
  • step36 :: Spring Security. users in the database.
  • step37 :: Spring Security. users in the database without fetching all by implementing UserDetailsService.
  • step37 :: Spring Security. custom UserDetails, custom UserDetailsService (step 37 polished).
  • step38 :: Spring Security. authorization configuration.
  • step39 :: Spring Security. extra configuration examples.
  • step41 :: Spring Security. Secure your API. basic idea.
  • step42 :: Spring Security. Secure your API. Stateless implementation base on JWT-token.
  • step43 :: Spring Security. Secure your API. get rid of MVC part + static resources mappings.

Links

TODO:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages