Git Product home page Git Product logo

spring-in-action-5-book-all-projects's Introduction

Spring in Action 5 Book Projects

  • Spring, Spring Boot, JPA, JDBC, MySQL, Oracle, H2, DB

Those are the project codes for Spring in Action, Fifth Edition, by Craig Walls Spring in Action 5

  1. Chapter-1. Getting started with Spring

    • Maven project provides Spring Boot and Spring Web Initialize thymeleaf

  1. Chapter-2. Developing web app
    • The project provides Spring Boot and JDBC template (using MySQL) implementation. In case of, Spring Boot using Maven configuration, and DB (database) using JDBC (only template not JPA ).

  1. Chapter-3. Working with Data_JDBC
    • Taco pizza (which I called project name) project provides Spring Boot and JDBC template (using MySQL) implementation. In case of, Spring Boot using Gradle configuration, and DB (database) using JDBC (only template not JPA ).
  • Chapter-3. Working with Data JPA
    • Taco pizza (which I called project name) project provides Spring Boot and JDBC template (using MySQL) implementation. In case of, Spring Boot using Maven configuration, and DB (database) using JDBC and JPA.

Important:

     <dependency>
        <groupId>com.h2database</groupId>
        <groupId>org.hibernate</groupId>
        <artifactId>credit_card_number</artifactId>
        <artifactId>assertj-core</artifactId>
        <artifactId>lombok</artifactId>
        <artifactId>htmlunit-driver</artifactId>
</dependency>
 <properties>
    <project.build.sourceEncoding>
        UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>
        UTF-8</project.reporting.outputEncoding>
    <java.version>1.8</java.version>
</properties>

  1. Chapter-4. Securing Spring

Autoconfiguring Spring Security

  • Defining custom user storage
  • Customizing the login page
  • Securing against CSRF attacks
  • Knowing your user

Missing parts in the textbook

Necessary dependencies in the .pom file org.springframework.boot spring-boot-starter-data-jpa javax.persistence javax.persistence-api 2.2 Inspect h2-console using your browser Log in Go to localhost:8080/h2-console Set JDBC URL to jdbc:h2:mem:testdb Test connection should show successful Click connect

There is one folder for each chapter in the book—​except for chapters 11 and 12, which share a source folder—​each containing most or all of the sample code for that chapter.

This source code is available for download from the book’s page at Manning.com as well as in GitHub at Projects

IMPORTANT: Lombok

To avoid having to write and maintain what is mostly boilerplate Java code, I’ve elected to use Lombok in all of these examples. When building from the command line, using Maven, you shouldn’t encounter any problems, as Lombok is included as part of the build process. But you will very likely encounter issues if you import these projects into your IDE.

If, after importing the projects into your IDE, you see errors complaining about missing getters, setters, constructors, or log instance variables, it’s because Lombok is not installed in your IDE. These bits of code will be generated by Lombok automatically, but your IDE doesn’t know that and complains that they are missing. Indeed, you may observer Maven (pom.xml) file and all dependecy. In that project we should use Intellij Idea.

To fix the errors, simply install Lombok. Lombok has support for most common (and arguably a few uncommon) IDEs, so no matter which IDE you use, you should be covered. See Lombok for details on installing Lombok in your IDE.

InAddition

In that folder, you can donwload Spring, and Annotation explanations.

Thymeleaf

spring-in-action-5-book-all-projects's People

Contributors

dependabot[bot] avatar urunov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.