Learning Spring application development : develop dynamic, feature-rich, and robust Spring-based applications using the Spring framework / Ravi Kant Soni.
- 1st edition
- Birmingham, England ; Mumbai, [India] : Packt Publishing, 2015.
- Community experience distilled.
Community Experience Distilled
1 online resource (394 p.)
- Java (Computer program language).
- Electronic books.
- System Details:
- text file
- This book is intended for those who are interested in learning the core features of the Spring Framework. Prior knowledge of Java programming and web development concepts with basic XML knowledge is expected.
- Cover; Copyright; Credits; About the Author; Acknowledgments; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introducing the Spring Framework; Introducing Spring; Features of Spring; Other features of Spring; Evolution of the Spring Framework; Spring Framework Architecture; Spring Core Container; The AOP module; Data access/integration; The Web module; Test module; Benefits of the Spring Framework; Creating an application in Spring; Obtaining Spring JAR files; Understanding Spring packaging; SpringSource Tool Suite; Spring application; Creating a Spring project
Adding required librariesCreating source files; Creating the Spring bean configuration file; Running the program; Exercise; Summary; Chapter 2: Inversion of Control in Spring; Understanding Inversion of Control; What is a container; Spring Container; Beans; BeanFactory; ApplicationContext; Dependency Injection; Dependency Injection in Spring; The Has-A relationship; Constructor-based Dependency Injection; The setter-based Dependency Injection; Injecting inner beans; Injecting null and empty string values in Spring; Case 1 - injecting an empty string; Case 2 - injecting a null value
Bean definition inheritanceInheritance with abstract; Autowiring in Spring; Autowiring modes; Autowiring using the no option; Autowiring using the byname option; Autowiring using the byType option; Autowiring using the constructor; Bean's scope; Singleton; Prototype; Request; Session; Global session; Spring bean life cycle; Initialization; Activation; Destruction; Initialization callbacks; Implementing the org.springframework.beans.factory.InitializingBean interface; Using init-method in the XML configuration; Destruction callbacks
Implementing the org.springframework.beans.factory.DisposableBean interfaceUsing destroy-method in the XML configuration; Exercise; Summary; Chapter 3: DAO and JDBC in Spring; Overview of database; The DAO design pattern; The DAO layer; JDBC without Spring; Sample code; ADD drivers specific to database into the project; Directory structure of the application; Spring JDBC packages; JDBC with Spring; DataSource; DataSource in the DAO class; Directory structure of the application; What is JdbcTemplate; Configuring the JdbcTemplate object as Spring bean; The Spring.xml file
Functionality exposed by the JdbcTemplate classQuerying (select); Updating (Insert-Update-Delete); Other JdbcTemplate operations; Directory structure of the application; The Employee.java file; The EmployeeDao.java file; The EmployeeDaoImpl.java file; JDBC batch operation in Spring; Directory structure of the application; The EmployeeDaoImpl.java file; The HrPayrollBatchUpdate.java file; Calling a stored procedure; Using the SimpleJdbcCall class; Calling a stored procedure; Exercise; Summary; Chapter 4: Hibernate with Spring; Why Object/Relational Mapping?
Introducing ORM, O/RM, and O/R mapping
- Includes index.
Description based on online resource; title from PDF title page (ebrary, viewed June 8, 2015).
|Location||Notes||Your Loan Policy|
|Description||Status||Barcode||Your Loan Policy|