Skip to main content

Posts

Showing posts with the label SPRING FRAMEWORK

What are the most important features of spring boot framework and how spring boot is different from Spring framework?

Spring Boot is a popular Java-based framework that helps developers create standalone, production-grade Spring-based applications quickly and easily. It is built on top of the popular Spring framework and provides several features that make it an ideal choice for modern web development. In this article, we will discuss the most important features of Spring Boot and how it differs from the Spring framework. Easy Configuration : One of the most significant features of Spring Boot is its ability to provide easy configuration of Spring-based applications. It uses a convention-over-configuration approach to minimize the need for XML configuration files. Instead, Spring Boot uses Java-based configuration files to manage application settings, making it easier to set up and manage complex Spring-based applications. Embedded Server : Spring Boot comes with an embedded server that allows developers to build and deploy standalone applications without the need for a separate web server. This featu...

Spring JdbcTemplate : Working, configuration, advantages and CRUD operation example

Spring JdbcTemplate  Spring JdbcTemplate is a powerful mechanism to connect to the database and execute SQL queries. It internally uses JDBC api, but eliminates a lot of problems of JDBC API.it provides excellent integration with JDBC API and provides JdbcTemplate utility class that we can use to avoid boiler-plate code from our database operations logic such as Opening/Closing Connection, ResultSet, PreparedStatement etc. Issues with old JDBC API: Native JDBC Api have so many issues and challenges. Some of the JDBC api issues are as follows. We need to write a lot of code before and after executing the query, such as creating connection, statement, closing resultset, connection etc. We need to perform exception handling code on the database logic. We need to handle transaction. Repetition of all these codes from one to another database logic is a time consuming task. Advantage of Spring JdbcTemplate Spring JdbcTemplate eliminates all the above mentioned problems of...

Spring : Terminology and Components of Spring IOC

Terminology and Components of Spring IOC 1. Bean- An object which is created and managed by IOC Container is a Bean. 2. BeanFactory- is an interface which describe the functionality of a basic IOC Container. Any class which implements this interface represents as an IOC Container. 3. XMLBeanFactory- is a framework provided class which implements BeanFactory Interface; an Object of XMLBeanFactory requires Bean Configuration File i.e. A XML Document. 4. Resource- is an interface it provides methods of managing the beans Configuration. Different implementations of this interface are provided by the framework. a. ClassPathResource- It is used when the configuration file/required file is in class path (A default path for placing the classes that is “build” in case of desktop/console application and WEB-INF in case of Web Application). This is mostly used in Web Application because developer doesn’t know the exact path when the application is deployed on server. Its default searching approac...

Spring : Description of Modules

DESCRIPTION OF MODULES: CORE This module provides the implementation of basic IOC Container. CONTEXT This module is built over core and provides the implementation of an Advanced IOC Container. AOP (ASPECT ORIENTED PROGRAMMING) This module is built over context and provides the implementation of Spring AOP. TX This module facilitates AOP based transaction management. JDBC This module provides the implementation of template design pattern for JDBC operations. ORM This module facilitates integration of sprig application to ORM frameworks such as Hibernate, iBatis etc. WEB This module provides the implementation of common operations of web application such as validation, file downloading, file uploading etc. WEB MVC This module provides the implementation of MVC design pattern for developing dynamic web application. ENTERPRISE INTEGRATION This module facilitates integration of Enterprise services such as JMS, JNDI, Java Mai, etc. to Spring Application. TESTING This module facilitates IOC ...

Spring : Introduction

Spring is a general purpose framework which doesn’t confine itself to any specific domain i.e. it can because in a console application, desktop application or a web application. It is based on a concept of Inversion of Control & Aspect Oriented Programming. It also supports distributed application development. Spring is a collection of Modules which can be used individually or collectively.   Read Here : Detailed Description of the Spring Modules