Cargando…

Spring 5 recipes : a problem-solution approach /

Solve all your Spring 5 problems using complete and real-world code examples. When you start a new project, you'll be able to copy the code and configuration files from this book, and then modify them for your needs. This can save you a great deal of work over creating a project from scratch. T...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Deinum, Marten (Autor), Rubio, Daniel (Autor), Long, Josh (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: [United States] : Apress, 2017.
Edición:Fourth edition.
Colección:ITpro collection
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • Contents at a Glance
  • Contents
  • About the Authors
  • About the Technical Reviewer
  • Acknowledgments
  • Introduction
  • Chapter 1: Spring Development Tools
  • 1-1. Build a Spring Application with the Spring Tool Suite
  • Problem
  • Solution
  • How It Works
  • Importing and Building a Maven Project
  • Importing and Building a Gradle Project
  • 1-2. Build a Spring Application with the IntelliJ IDE
  • Problem
  • Solution
  • How It Works
  • Creating a Spring Application
  • Importing and Building a Maven Project
  • Importing and Building a Gradle Project1-3. Build a Spring Application with the Maven Command-Line Interface
  • Problem
  • Solution
  • How It Works
  • 1-4. Build a Spring Application with the Gradle Wrapper
  • Problem
  • Solution
  • How It Works
  • 1-5. Build a Spring Application with the Gradle Command-Line Interface
  • Problem
  • Solution
  • How It Works
  • 1-6. Build a Spring Application with the Gradle Wrapper
  • Problem
  • Solution
  • How It Works
  • Summary
  • Chapter 2: Spring Core Tasks
  • 2-1. Use a Java Config to Configure POJOs
  • ProblemSolution
  • How It Works
  • Create a Java Config with @Configuration and @Bean to Create POJOs
  • Instantiate the Spring IoC Container to Scan for Annotations
  • Get POJO Instances or Beans from the IoC Container
  • Create POJO Class with the @Component Annotation to Create Beans with DAO
  • Instantiate the Spring IoC Container with Filters to Scan for Annotations
  • Get POJO Instances or Beans from the IoC Container
  • 2-2. Create POJOs by Invoking a Constructor
  • Problem
  • Solution
  • How It Works
  • Create the POJO Classes with Constructors
  • Create a Java Config for Your POJO2-3. Use POJO References and Autowiring to Interact with Other POJOs
  • Problem
  • Solution
  • How It Works
  • Reference POJOs in a Java Config Class
  • Autowire POJO Fields with the @Autowired Annotation
  • Autowire POJO Methods and Constructors with the @Autowired Annotation and Make Autowiring Optional
  • Resolve Autowire Ambiguity with Annotations
  • Resolve Autowire Ambiguity with the @Primary Annotation
  • Resolve Autowire Ambiguity with the @Qualifier Annotation
  • Resolve POJO References from Multiple Locations
  • 2-4. Autowire POJOs with the @Resource and @Inject AnnotationsProblem
  • Solution
  • How It Works
  • Autowire POJOs with the @Resource Annotation
  • Autowire POJOs with the @Inject Annotation
  • 2-5. Set a POJOâ#x80;#x99;s Scope with the @Scope Annotation
  • Problem
  • Solution
  • How It Works
  • 2-6. Use Data from External Resources (Text Files, XML Files, Properties Files, or Image Files)
  • Problem
  • Solution
  • How It Works
  • Use Properties File Data to Set Up POJO Instantiation Values
  • Use Data from Any External Resource File for Use in a POJO