Spring Cookbook
eBook - ePub

Spring Cookbook

Jerome Jaglale

Compartir libro
  1. 234 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Spring Cookbook

Jerome Jaglale

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Spring Cookbook un PDF/ePUB en línea?
Sí, puedes acceder a Spring Cookbook de Jerome Jaglale en formato PDF o ePUB, así como a otros libros populares de Informatica y Programmazione in Java. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2015
ISBN
9781783985807

Spring Cookbook


Table of Contents

Spring Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Creating a Spring Application
Introduction
Installing Java, Maven, Tomcat, and Eclipse on Mac OS
How to do it…
Installing Java
Installing Maven
Installing Tomcat
Installing Eclipse
There's more…
Installing Java, Maven, Tomcat, and Eclipse on Ubuntu
How to do it…
Installing Java
Installing Maven
Installing Tomcat
Installing Eclipse
There's more…
Installing Java, Maven, Tomcat, and Eclipse on Windows
How to do it…
Installing Java
Installing Maven
Installing Tomcat
Installing Eclipse
Creating a Spring web application
How to do it…
Creating a new Maven project in Eclipse
Adding Spring to the project using Maven
Creating the configuration classes for Spring
Creating a "Hello World" web page
How it works…
Creating a new Maven project in Eclipse
Adding Spring to the project using Maven
Creating the configuration classes for Spring
Creating a "Hello World" web page
Running a Spring web application
How to do it…
How it works…
There's more…
Using Spring in a standard Java application
How to do it…
Creating a new Maven project in Eclipse
Adding Spring to the project using Maven
Creating a configuration class for Spring
Creating the User class
Defining a User singleton in the Spring configuration class
Using the User singleton in the main() method
How it works...
2. Defining Beans and Using Dependency Injection
Introduction
Defining a bean explicitly with @Bean
How to do it…
How it works…
There's more…
Defining a bean implicitly with @Component
Getting ready
How to do it…
How it works…
There's more…
Using a bean via dependency injection with @Autowired
Getting ready
How to do it…
How it works…
There's more…
Using a bean directly
Getting ready
How to do it…
How it works…
There's more…
Listing all beans
Getting ready
How to do it…
How it works…
There's more…
Using multiple configuration classes
Getting ready
How to do it…
There's more…
3. Using Controllers and Views
Introduction
Associating a route to a controller method
How to do it…
How it works…
Using a JSP view
How to do it…
How it works…
There's more…
Passing attributes from a controller to a JSP view
How to do it…
How it works…
Using dynamic route parameters in a controller method
How to do it…
How it works…
Using a common prefix for the routes of a controller
How to do it…
How it works…
Using a page template with Tiles
How to do it…
How it works…
There's more…
Organizing the JSP with subfolders
Using multiple page templates
Defining page titles only once using a text attribute
Executing some code before and after controllers using interceptors
How to do it…
How it works…
There's more…
Building multilingual pages
How to do it…
How it works…
There's more…
Getting the current language
Using the language in the URL
4. Querying a Database
Introduction
Connecting to a database
Getting ready
How to do it…
How it works…
Creating a DAO class
How to do it…
How it works…
Calling a DAO method from a controller class
Getting ready
How to do it…
How it works…
Saving an object
Getting ready
How to do it…
How it works…
Retrieving an object
How to do it…
How it works…
There's more…
Retrieving a list of objects
How to do it…
How it works…
Retrieving a list of objects with their dependencies
Getting ready
How to do it…
How it works…
Updating an object
How to do it…
There's more…
Deleting an object
How to do it…
Finding the number of results for an SQL query
How to do it…
Saving a list of objects at once
How to do it…
How it works…
Reverting incomplete database modifications using transactions
How to do it…
How it works…
Using Hibernate for powerful object persistence and querying
Getting ready
How to do it…
5. Using Forms
Introduction
Displaying...

Índice