Configuring spring beans without XML

We have a class Person package com.kb.java_based_configuration;   public class Person {   } package com.kb.java_based_configuration; public class Person { } Now I want to make this as a spring bean. I can do it using xml as follows Method 1 <?xml version="1.0" encoding="UTF-8"?>   <beans xmlns="http://www.springframework.org/schema/beans"     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"     xmlns:context="http://www.springframework.org/schema/context"     […]

Share this article on

Maven usage

Maven to software development First go to start->run->cmd prompt go to the path where you want the maven project to be placed. Run the mvn archetype:generate command as shown below. Now select the number which indicates the type of the project, in below image, i have selected 6 for simple core java project and also […]

Share this article on
< Previous Next >