Blog Archives

Spring Security Namespace Designs


The namespace is designed to capture the most common uses of the framework and provide a simplified and concise syntax for enabling them within an application. The design is based around the large-scale dependencies within the framework, and can be

Tagged with: , , , , , ,
Posted in Spring, Spring Security

Features of Spring Web MVC


Spring’s web module includes many unique web support features: Clear separation of roles. Each role—controller, validator, command object, form object, model object, DispatcherServlet, handler mapping, view resolver, and so on—can be fulfilled by a specialized object. Powerful and straightforward configuration

Tagged with: , , , , , , ,
Posted in Spring

Methods of Bean Configurations for Spring Container


There are three ways to provide the configuration metadata to Spring container. Below are the more details about them. 1. Xml based configuration file <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd”&gt; <!– A simple bean definition –> <bean id=”…” class=”…”>

Tagged with: , , ,
Posted in Spring

Spring Bean Scopes – Examples


There are 5 spring bean scopes as below: 1. Singleton:  If scope is set to singleton, the Spring IoC container creates exactly one instance of the object defined by that bean definition. This single instance is stored in a cache

Tagged with: , , , , ,
Posted in Spring

How to Inject Null or Blank values to a Spring Bean


To inject an NULL value which is equivalent to bean.setMessage(null): <bean id=”beanId” class=”bean”> <property name=”message”><null/></property> </bean> To inject an empty Stringe which is equivalent to bean.setMessage(“”) <bean id=”beanId” class=”bean”> <property name=”message” value=””></property> </bean>  

Tagged with: ,
Posted in Spring

Different Types of Spring Containers


There are two distinct types of spring containers as mentioned below: 1. BeanFactory Container: This is the simplest container providing basic support for Dependency Injection and defined by the org.springframework.beans.factory.BeanFactory interface. The BeanFactory and related interfaces, such as BeanFactoryAware, InitializingBean, DisposableBean,

Tagged with: , , , ,
Posted in Spring

Is it mandatory to have the “id” property in Bean/ApplicationContext Xml


Typical Bean xml file looks like below: <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans&#8221; xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd&#8221; > <bean class=”in.malliktalksjava.service.MyServiceImpl”> <property name=”repository” ref=”someDAO”/> </bean> <bean id=”someDAO” class=”in.malliktalksjava.dao.SomeDao”/> </beans> MyServiceImpl Bean is anonymous because no id is supplied explicitly. Thus Spring container generates a

Tagged with: , , , ,
Posted in Spring

Spring Core – Hello World Example


Pre Requisite : Download and install the Spring STS into your machine. This will provide all the default spring configurations whenever you create the project Application Creation Steps: Step 1: Spring Maven project in your STS. This gives the project

Tagged with: , , , , , , ,
Posted in Spring

org.springframework.beans.NotReadablePropertyException: Invalid property


Exception: ERROR: org.springframework.web.servlet.tags.form.RadioButtonTag – Invalid property ‘newUser’ of bean class [com.malliktalksjava.bean.UserBean]: Bean property ‘newUser’ is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? org.springframework.beans.NotReadablePropertyException: Invalid property

Tagged with: , , , ,
Posted in Spring

Features of Spring Web MVC


Spring’s web module includes many unique web support features: Clear separation of roles. Each role — controller, validator, command object, form object, model object, DispatcherServlet, handler mapping, view resolver, and so on — can be fulfilled by a specialized object. Powerful and

Tagged with: , , , , , , , , ,
Posted in Spring

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 676 other followers

Calendar
October 2017
M T W T F S S
« Aug    
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
Mallikarjun Gunda

This is Mallikarjun Gunda, I am working as a software professional. Blogging is my Passion. This blog contains the posts on Java related technologies and programming languages. I am happy to share my knowledge through the blogs.

Blog Stats
  • 228,693 hits
IndiBlogger
malliktalksjava.wordpress.c...
70/100
All tags
AngularJS Apache Cassandra Arrays in Java Cassandra Cassandra Database Cassandra examples client stubs creating a java web service creating a web service using java difference between interface and abstract class Differences between SOAP and RESTfull webservices Display div as Overlay using JQuery download the spring basic application File directory Generating webservice client stubs Hibernate hibernate exceptions How to display over using JQuery how to generated web service client stubs in STS How to implement Spring basic application how to write singleton design pattern in java interface in java Java Java Arrays Java Example Programs Java examples Java interview questions java programs java project Java sample Programs Java Script JavaScript JavaServer Faces Java Sorting alogorithms Java Tutorials javatutorials Java Web services JDBC open shift openshift Overlay implementation using JQuery Overlay in JQuery POI API POI Examples public class public static void main Redhat OpenShift representational state transfer Restfull webservices sample programs in java Service-oriented architecture Singleton design pattern in java SOAP SOAP Webservices software Spring Framework Spring Interview Questions Spring MVC Spring MVC Example program Spring MVC sample Program Spring Sample Programs Spring Tutorials Struts technology Top Java Interview questions w3c dom Web service web service client Web Service Description Language webservices Web services writing singleton design pattern in Java WSDL Xml xml parsers