@Service @RequiredArgsConstructor public class BookService private final BookRepository bookRepo; public Book saveBook(Book book) return bookRepo.save(book);

./mvnw package

management.endpoints.web.exposure.include=health,info,metrics Build a fat JAR:

@Test void shouldCreateBook() throws Exception mockMvc.perform(post("/api/books") .contentType(MediaType.APPLICATION_JSON) .content("\"title\":\"Spring Boot in Action\",\"author\":\"Craig Walls\"")) .andExpect(status().isOk());

application-dev.properties , application-prod.properties Activate: spring.profiles.active=dev 5. Data Persistence (JPA + Repository) Entity:

Our plugins

Try TeamUpdraft’s full suite of WordPress plugins.

  • Spring Boot In Action -

    @Service @RequiredArgsConstructor public class BookService private final BookRepository bookRepo; public Book saveBook(Book book) return bookRepo.save(book);

    ./mvnw package

    management.endpoints.web.exposure.include=health,info,metrics Build a fat JAR: Spring Boot In Action

    @Test void shouldCreateBook() throws Exception mockMvc.perform(post("/api/books") .contentType(MediaType.APPLICATION_JSON) .content("\"title\":\"Spring Boot in Action\",\"author\":\"Craig Walls\"")) .andExpect(status().isOk()); public Book saveBook(Book book) return bookRepo.save(book)

    application-dev.properties , application-prod.properties Activate: spring.profiles.active=dev 5. Data Persistence (JPA + Repository) Entity: \"author\":\"Craig Walls\"")) .andExpect(status().isOk())

  • WP-Optimize

    Speed up and optimize your WordPress website. Cache your site, clean the database and compress images

  • UpdraftCentral

    Centrally manage all your WordPress websites’ plugins, updates, backups, users, pages and posts from one location

  • Burst Statistics

    Privacy-friendly analytics for your WordPress site. Get insights without compromising your visitors’ privacy

Spring Boot In Action