Spring Boot

Table of Contents
  1. How to Struc­ture y­our Code§1
    1. How to write htm­l§2
      1. Post / Form­s§3
        1. Ses­sion­s§4
          1. De­pen­den­cy In­jec­tion§5
            1. De­bug­ging§6
              1. Data­base§7
                1. In­te­gra­tion Test§8
                  1. In­spi­ra­tion§9

                    How to Struc­ture y­our Code §1

                    Exam­ple https://docs.spring.io/spring-boot/reference/using/structuring-your-code.html

                    How to write htm­l §2

                    First get fa­mil­iar with HTM­L, then y­ou can de­fine y­our code us­ing tem­plates.

                    Exam­ple https://www.baeldung.com/spring-template-engines

                    Al­so https://dev.to/yosephtenaw/use-htmx-with-spring-boot-and-thymeleaf-18g9

                    Post / Form­s §3

                    See the exam­ple in the Lo­gin view. Re­quest pa­ra­m­e­ter­s can be cap­tured us­ing the @RequestParam an­no­ta­tion­s.

                    Ses­sion­s §4

                    An exam­ple ses­sion https://www.geeksforgeeks.org/spring-boot-session-management

                    De­pen­den­cy In­jec­tion §5

                    See De­pen­den­cy In­jec­tion

                    De­bug­ging §6

                    De­bug­ging Spring Boot ap­pli­ca­tion­s can be frus­trat­ing, be­cause we step in­to the prox­y meth­od­s. To make it bet­ter in­sert the fol­low­ing pat­tern­s in to the step­ping rules In­telli­J (§1).

                    org.springframework.*; 
                    org.apache.*; 

                    Data­base §7

                    How to get s­tart­ed with data­bas­es https://www.baeldung.com/spring-boot-h2-database and https://www.geeksforgeeks.org/spring-boot-jdbc

                    Al­so see H2

                    In­te­gra­tion Test §8

                    Y­ou can write In­te­gra­tion Test in Spring Boot rel­a­tive­ly easy. Y­ou can see the exam­ples in the FordelApplicationTest class, as well as in­spi­ra­tion here.

                    In­spi­ra­tion §9