Spring Cookbook
eBook - ePub

Spring Cookbook

Jerome Jaglale

Buch teilen
  1. 234 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

Spring Cookbook

Jerome Jaglale

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist Spring Cookbook als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu Spring Cookbook von Jerome Jaglale im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatica & Programmazione in Java. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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

Inhaltsverzeichnis