example Spring code
Example 1: spring code in java
package com.javatpoint;
public class Student {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public void displayInfo(){
System.out.println("Hello: "+name);
}
}
This is simp
Example 2: how to use spring in java
Your Message : Hello World!