Skip to content

Repository files navigation

Spring Boot Kitchen-sink

Course Spring Boot Masterclass

Java on Neovim chad configuration, not virgin intelliJ allowed, otherwise where's the fun? :)

  1. LSP: jdtls

  2. DAP: java-debug-adapter

  3. Gradle:

    • Needs Java 17
    sudo pacman -S jre17-openjdk
    archlinux-java set java-17-openjdk

Run Application

  •  ./gradlew bootRun
  •  ./gradlew bootRun --args='--app.useFakeCustomerRepo=true'

Course Notes

Spring Web Servers

There are 2 servers:

  1. Tomcat (default)
  2. Jetty (change pom.xml)

N Tier Architecture

This architecture is structure in layers as follows:

  1. Client
  2. REST Layer (POST, GET, PUT, DELETE) (Controllers)
  3. Service Layer (business logic)
  4. DAO (Data Abstracion Object) Layer

Annotations

@Component - Is a singleton (one instance instead of creating multiple instances). Creates one instance that we can then inject @RestController - Is like @Component, but more specific annotation @Service - Is like @Component, but more specific annotation @Repository - Is like @Component, but more specific annotation @GetMapping @PutMapping @PostMapping @Primary @Autowired @Qualifier @Bean - Add configuration steps before a class is initialized @Configuration

About

Kitchen-sink Spring Boot Application

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages