Skip to content

siddarthmishra/spring-boot

Repository files navigation

Spring Boot

Spring Initializr

Spring Boot Documentation

Starters

Spring Boot Dev Tools

Spring Boot Actuator

mvn clean compile test

mvn package

mvn spring-boot:run

Running Spring Boot from command line
  • Option 1 : Use java -jar
  • Option 2 : Use Spring Boot Maven plugin
    • mvnw spring-boot:run or mvn spring-boot:run

Spring Boot Properties

Spring Boot Logging


Various DAO Techniques
  • Use EntityManager but leverage native Hibernate API
  • Use EntityManager and standard JPA API
  • Spring Data JPA

JPA Query Language (JPQL)

Spring Data JPA

JpaRepository Docs

Spring Data REST

Spring Data REST Documentation


@RepositoryRestResource(path = "members")

if we want to expose a different resource name? instead of "/employees" (or default) to use "/members" (customized) so path will be http://localhost:8080/members

Pagination
To make default base path
  • spring.data.rest.base-path=/magic-api

Here, http://localhost:8080/magic-api will be default base path

Sorting

In Employee,we have firstName, lastName and email


Bootstrap

Thymeleaf

Thymeleaf Documentation


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published