1 Star 0 Fork 0

dassio / spring5_in_action

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

spring5_in_action

介绍

spring in action following practice code

Notes

Chapter 1 Getting started

  • DI: constructor arguments / property accessor methods
  • Automatic Configuration: atuowiring + component scanning ++ springboot
  • Spring Tool Suite/Spring Boot CLI(using small cases): pring init --dependencies=devtools,thymeleaf,web TacoCloud

  • Spring Boot dependency: starter dependency don't have code, they will pull in other real dependency: eaiser management of POM.xml
  • Spring Boot Maven Plugin:
    • command to run project
    • include library in the final JAR
    • create manifest file for JAR

  • Source Code:
    • @SpringBootApplication:

      • @SptingBootConfiguration
      • @EnableAutoConfiguration
      • @ComponentCsan
    • ConfigurationClass: each project can have more

    • @RunWith(SpringRunner.class) : create the spring context the test run against


  • Writing code: Spring MVC
    • note1: annotation is more descriptive
    • notes2: spring now is using jupiter?

    • DevTools: auto reload project and browser page
      • 2 class loader: source and library, need to restart when dependency changes

  • Reviewing:
    • core spring framework: Spring MVC ; JdbcTemplate; WebFlux;
    • Spring Boot: starter denpendency; autoconfiguration; Actuator; testing support; Spring Boot CLI using groovy
    • Sping Data: compared to herbinatzae?
    • Spring Security:
    • Spring Integration and Spring Batch:
    • Spring Cloud: for micro-services

Chapter 2 Spring MVC, process input , view template

  • Q1: difference between List/Array/Arrays
  • Notes1: devtools will not auto configure sf4j logger

Chapter 3 data persistence

  • JDBC: Java Database Connectivity
    • Q1: what is a checked exception?
    • Q2: what is an method reference ?
    • Q3: what is a HashMap
    • Q4: what is spring AOP?
  • JPA: Java Persistence API

Chapter 4 Security

Chapter 5 Configuration, Spring profiles

Comments ( 0 )

Sign in for post a comment

About

spring in action following practice code spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://git.oschina.net/dassio/spring5_in_action.git
git@git.oschina.net:dassio/spring5_in_action.git
dassio
spring5_in_action
spring5_in_action
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542