Sunday 6 January 2019

ITV-spring-Create sample spring application

https://www.javatpoint.com/steps-to-create-spring-application
  • create the class
  • create the xml file to provide the values
  • create the test class
  • Load the spring jar files
  • Run the test class
  1. <?xml version="1.0" encoding="UTF-8"?>  
  2. <beans  
  3.     xmlns="http://www.springframework.org/schema/beans"  
  4.     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  5.     xmlns:p="http://www.springframework.org/schema/p"  
  6.     xsi:schemaLocation="http://www.springframework.org/schema/beans  
  7.                http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">  
  8.   
  9. <bean id="studentbean" class="com.javatpoint.Student">  
  10. <property name="name" value= "Vimal Jaiswal"></property>  
  11. </bean>  
  12.   
  13. </beans> 


What is encoding UTF-8?
   


No comments:

Post a Comment

40 Latest Interview Questions and Answers on Spring, Spring MVC, and Spring Boot

  40 Latest Interview Questions and Answers on Spring, Spring MVC, and Spring Boot 1. What is Tight Coupling? When a class (ClassA) is depen...