Spring Cookbook
eBook - ePub

Spring Cookbook

Jerome Jaglale

Condividi libro
  1. 234 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Spring Cookbook

Jerome Jaglale

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Spring Cookbook è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Spring Cookbook di Jerome Jaglale in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Programmazione in Java. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
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...

Indice dei contenuti