├── .gitignore ├── Autowiring_XML_1 ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── com │ │ └── masai │ │ │ ├── Demo.class │ │ │ ├── Address.class │ │ │ └── Employee.class │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Autowring_XML │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ ├── Demo.java │ │ │ ├── Employee.java │ │ │ └── Address.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Autowiring_XML_2 ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── com │ │ └── masai │ │ │ ├── Bus.class │ │ │ ├── Demo.class │ │ │ └── Passenger.class │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Autowiring_XML_2 │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ ├── Demo.java │ │ │ ├── Bus.java │ │ │ └── Passenger.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Autowiring_Annotation_1 ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Autowiring_Annotation_1 │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ └── demo │ │ │ ├── Bus.class │ │ │ ├── Test.class │ │ │ ├── PessengerWithConsAnnotation.class │ │ │ ├── PessengerWithSetterAnnotation.class │ │ │ └── PessengerWithVariableAnnotation.class │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ └── demo │ │ │ ├── Bus.java │ │ │ ├── PessengerWithConsAnnotation.java │ │ │ ├── PessengerWithVariableAnnotation.java │ │ │ ├── PessengerWithSetterAnnotation.java │ │ │ └── Test.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Autowiring_With_Qualifier_1 ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Autowiring_Annotation_1 │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ └── demo │ │ │ ├── Test.class │ │ │ ├── Student.class │ │ │ └── Teacher.class │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ └── demo │ │ │ ├── Test.java │ │ │ ├── Teacher.java │ │ │ └── Student.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Practice_1_With_XML_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_With_XML_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── com │ │ └── masai │ │ ├── model │ │ ├── Car.class │ │ ├── Employee.class │ │ ├── Student.class │ │ └── RollNumbers.class │ │ └── test │ │ ├── Main.class │ │ └── Main2.class ├── src │ └── main │ │ └── java │ │ └── com │ │ └── masai │ │ ├── test │ │ ├── Main2.java │ │ └── Main.java │ │ └── model │ │ ├── RollNumbers.java │ │ ├── Student.java │ │ ├── Employee.java │ │ └── Car.java ├── .project ├── pom.xml └── .classpath ├── Practice_2_With_XML_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_With_XML_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ ├── test │ │ │ └── Demo.class │ │ │ └── model │ │ │ ├── Student.class │ │ │ ├── Teacher.class │ │ │ └── Teacher2.class │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ ├── model │ │ │ ├── Teacher.java │ │ │ ├── Teacher2.java │ │ │ └── Student.java │ │ │ └── test │ │ │ └── Demo.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml ├── resources │ ├── collectionConfig.xml │ └── applicationContext.xml └── .classpath ├── Practice_3_With_XML_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_3_With_XML_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ └── demo │ │ │ ├── Book.class │ │ │ ├── Demo.class │ │ │ ├── Student.class │ │ │ └── Student2.class │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ └── demo │ │ │ ├── Book.java │ │ │ ├── Student2.java │ │ │ ├── Student.java │ │ │ └── Demo.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Practice_4_With_XML_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_4_With_XML_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ ├── Demo.class │ │ │ └── Samosa.class │ │ └── applicationContext.xml ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ ├── Samosa.java │ │ │ └── Demo.java │ │ └── resources │ │ └── applicationContext.xml ├── .project ├── pom.xml └── .classpath ├── Practice_5_With_XML_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_5_With_XML_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ ├── com │ │ └── masai │ │ │ ├── Demo.class │ │ │ ├── EmployeeSetter.class │ │ │ └── EmployeeConstructorArg.class │ │ └── applicationContext.xml ├── .project ├── src │ └── main │ │ ├── java │ │ └── com │ │ │ └── masai │ │ │ ├── EmployeeConstructorArg.java │ │ │ ├── EmployeeSetter.java │ │ │ └── Demo.java │ │ └── resources │ │ └── applicationContext.xml ├── pom.xml └── .classpath ├── Practice_1_With_Annotation_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_1_With_Annotation_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── com │ │ └── masai │ │ ├── Bus.class │ │ ├── Main.class │ │ ├── Config.class │ │ └── Passenger.class ├── src │ └── main │ │ └── java │ │ └── com │ │ └── masai │ │ ├── Config.java │ │ ├── Main.java │ │ ├── Passenger.java │ │ └── Bus.java ├── .project ├── pom.xml └── .classpath ├── Practice_2_With_Annotation_Approach ├── .settings │ ├── org.eclipse.jdt.apt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ └── org.eclipse.jdt.core.prefs ├── target │ └── classes │ │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── maven │ │ │ └── com.masai │ │ │ └── Practice_1_With_Annotation_Approach │ │ │ ├── pom.properties │ │ │ └── pom.xml │ │ └── com │ │ └── masai │ │ ├── Main.class │ │ ├── Address.class │ │ ├── Config.class │ │ └── Employee.class ├── src │ └── main │ │ └── java │ │ └── com │ │ └── masai │ │ ├── Config.java │ │ ├── Main.java │ │ ├── Employee.java │ │ └── Address.java ├── .project ├── pom.xml └── .classpath └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | /.metadata/ 2 | -------------------------------------------------------------------------------- /Autowiring_XML_1/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Autowiring_XML_2/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/.settings/org.eclipse.jdt.apt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.apt.aptEnabled=false 3 | -------------------------------------------------------------------------------- /Autowiring_XML_1/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_XML_2/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/com/masai/Bus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_2/target/classes/com/masai/Bus.class -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/com/masai/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_1/target/classes/com/masai/Demo.class -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/com/masai/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_2/target/classes/com/masai/Demo.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/com/masai/Address.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_1/target/classes/com/masai/Address.class -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/com/masai/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_1/target/classes/com/masai/Employee.class -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/com/masai/Passenger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_XML_2/target/classes/com/masai/Passenger.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/com/masai/demo/Bus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_Annotation_1/target/classes/com/masai/demo/Bus.class -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/com/masai/demo/Test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_Annotation_1/target/classes/com/masai/demo/Test.class -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/com/masai/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_4_With_XML_Approach/target/classes/com/masai/Demo.class -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/com/masai/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_5_With_XML_Approach/target/classes/com/masai/Demo.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Built-By: shubh 3 | Build-Jdk: 17.0.6 4 | Created-By: Maven Integration for Eclipse 5 | 6 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/com/masai/Samosa.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_4_With_XML_Approach/target/classes/com/masai/Samosa.class -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Test.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Test.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/model/Car.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/model/Car.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/test/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/test/Main.class -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/com/masai/test/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_XML_Approach/target/classes/com/masai/test/Demo.class -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/com/masai/demo/Book.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_3_With_XML_Approach/target/classes/com/masai/demo/Book.class -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/com/masai/demo/Demo.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_3_With_XML_Approach/target/classes/com/masai/demo/Demo.class -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Student.class -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_With_Qualifier_1/target/classes/com/masai/demo/Teacher.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/com/masai/Bus.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_Annotation_Approach/target/classes/com/masai/Bus.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/com/masai/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_Annotation_Approach/target/classes/com/masai/Main.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/test/Main2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/test/Main2.class -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/com/masai/Main.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_Annotation_Approach/target/classes/com/masai/Main.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/com/masai/Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_Annotation_Approach/target/classes/com/masai/Config.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/model/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/model/Employee.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/model/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/model/Student.class -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/com/masai/Address.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_Annotation_Approach/target/classes/com/masai/Address.class -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/com/masai/Config.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_Annotation_Approach/target/classes/com/masai/Config.class -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/com/masai/model/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_XML_Approach/target/classes/com/masai/model/Student.class -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/com/masai/model/Teacher.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_XML_Approach/target/classes/com/masai/model/Teacher.class -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/com/masai/model/Teacher2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_XML_Approach/target/classes/com/masai/model/Teacher2.class -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/com/masai/demo/Student.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_3_With_XML_Approach/target/classes/com/masai/demo/Student.class -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/com/masai/demo/Student2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_3_With_XML_Approach/target/classes/com/masai/demo/Student2.class -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/com/masai/EmployeeSetter.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_5_With_XML_Approach/target/classes/com/masai/EmployeeSetter.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/com/masai/Passenger.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_Annotation_Approach/target/classes/com/masai/Passenger.class -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/com/masai/Employee.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_2_With_Annotation_Approach/target/classes/com/masai/Employee.class -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/com/masai/model/RollNumbers.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_1_With_XML_Approach/target/classes/com/masai/model/RollNumbers.class -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/com/masai/EmployeeConstructorArg.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Practice_5_With_XML_Approach/target/classes/com/masai/EmployeeConstructorArg.class -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithConsAnnotation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithConsAnnotation.class -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithSetterAnnotation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithSetterAnnotation.class -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithVariableAnnotation.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Shubh2-0/Spring-Projects/HEAD/Autowiring_Annotation_1/target/classes/com/masai/demo/PessengerWithVariableAnnotation.class -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/src/main/java/com/masai/Config.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.annotation.ComponentScan; 4 | import org.springframework.context.annotation.Configuration; 5 | 6 | @Configuration 7 | @ComponentScan("com") 8 | public class Config { 9 | 10 | } 11 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/META-INF/maven/com.masai/Autowring_XML/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Autowiring_XML_1 4 | m2e.projectName=Autowiring_XML_1 5 | groupId=com.masai 6 | artifactId=Autowring_XML 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/META-INF/maven/com.masai/Autowiring_XML_2/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Autowiring_XML_2 4 | m2e.projectName=Autowiring_XML_2 5 | groupId=com.masai 6 | artifactId=Autowiring_XML_2 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/META-INF/maven/com.masai/Autowiring_Annotation_1/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:46 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Autowiring_Annotation_1 4 | m2e.projectName=Autowiring_Annotation_1 5 | groupId=com.masai 6 | artifactId=Autowiring_Annotation_1 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/META-INF/maven/com.masai/Autowiring_Annotation_1/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Autowiring_With_Qualifier_1 4 | m2e.projectName=Autowiring_With_Qualifier_1 5 | groupId=com.masai 6 | artifactId=Autowiring_Annotation_1 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_With_XML_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_1_With_XML_Approach 4 | m2e.projectName=Practice_1_With_XML_Approach 5 | groupId=com.masai 6 | artifactId=Practice_With_XML_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_With_XML_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_2_With_XML_Approach 4 | m2e.projectName=Practice_2_With_XML_Approach 5 | groupId=com.masai 6 | artifactId=Practice_With_XML_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_3_With_XML_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_3_With_XML_Approach 4 | m2e.projectName=Practice_3_With_XML_Approach 5 | groupId=com.masai 6 | artifactId=Practice_3_With_XML_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_4_With_XML_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_4_With_XML_Approach 4 | m2e.projectName=Practice_4_With_XML_Approach 5 | groupId=com.masai 6 | artifactId=Practice_4_With_XML_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_5_With_XML_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_5_With_XML_Approach 4 | m2e.projectName=Practice_5_With_XML_Approach 5 | groupId=com.masai 6 | artifactId=Practice_5_With_XML_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/META-INF/maven/com.masai/Practice_1_With_Annotation_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 00:28:47 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_1_With_Annotation_Approach 4 | m2e.projectName=Practice_1_With_Annotation_Approach 5 | groupId=com.masai 6 | artifactId=Practice_1_With_Annotation_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/META-INF/maven/com.masai/Practice_1_With_Annotation_Approach/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven Integration for Eclipse 2 | #Mon May 01 02:01:45 IST 2023 3 | m2e.projectLocation=C\:\\Users\\shubh\\OneDrive\\Desktop\\GitHub Repos\\Spring\\Practice_2_With_Annotation_Approach 4 | m2e.projectName=Practice_2_With_Annotation_Approach 5 | groupId=com.masai 6 | artifactId=Practice_1_With_Annotation_Approach 7 | version=0.0.1-SNAPSHOT 8 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/src/main/java/com/masai/Config.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.annotation.Bean; 4 | import org.springframework.context.annotation.ComponentScan; 5 | import org.springframework.context.annotation.Configuration; 6 | 7 | @Configuration 8 | @ComponentScan("com") 9 | public class Config { 10 | 11 | @Bean 12 | public Address getAddress() { 13 | return new Address(); 14 | } 15 | 16 | 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/src/main/java/com/masai/demo/Book.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | public class Book { 4 | 5 | private String name; 6 | private int price; 7 | 8 | 9 | public Book(String name, int price) { 10 | this.name = name; 11 | this.price = price; 12 | } 13 | 14 | 15 | @Override 16 | public String toString() { 17 | return "Book Name : " + name + "\nPrice : " + price + "\n\n======\n\n"; 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/src/main/java/com/masai/model/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | public class Teacher { 4 | 5 | private String name; 6 | private Student st; 7 | public void setName(String name) { 8 | this.name = name; 9 | } 10 | public void setSt(Student st) { 11 | this.st = st; 12 | } 13 | @Override 14 | public String toString() { 15 | return "Teacher Name : " + name + "\nStudent Details\n" + st + "]"; 16 | } 17 | 18 | 19 | 20 | 21 | } 22 | -------------------------------------------------------------------------------- /Autowiring_XML_1/src/main/java/com/masai/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Demo { 7 | 8 | public static void main(String[] args) { 9 | 10 | ApplicationContext cxt = new ClassPathXmlApplicationContext("applicationContext.xml"); 11 | 12 | Employee e = cxt.getBean(Employee.class,"emp1"); 13 | 14 | System.out.println(e.getEmpAddress()); 15 | 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Autowiring_XML_1/src/main/java/com/masai/Employee.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Employee { 4 | 5 | private Address empAddress; 6 | 7 | public Address getEmpAddress() { 8 | return empAddress; 9 | } 10 | 11 | public void setEmpAddress(Address empAddress) { 12 | this.empAddress = empAddress; 13 | } 14 | 15 | @Override 16 | public String toString() { 17 | return "Employee [empAddress=" + empAddress + "]"; 18 | } 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | } 27 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/src/main/java/com/masai/demo/Test.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Test { 7 | 8 | public static void main(String[] args) { 9 | 10 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 11 | 12 | Student st1 = ctx.getBean(Student.class,"st1"); 13 | 14 | 15 | System.out.println(st1); 16 | 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/src/main/java/com/masai/demo/Student2.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | public class Student2 { 4 | 5 | 6 | private String name; 7 | private int age; 8 | private Book b; 9 | 10 | public Student2(String name, int age, Book b) { 11 | this.name = name; 12 | this.age = age; 13 | this.b = b; 14 | } 15 | 16 | @Override 17 | public String toString() { 18 | return "Student Name : " + name + "\nAge : " + age + "\n==Book Detail==\n" + b; 19 | } 20 | 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Autowiring_XML_1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Autowiring_XML_2/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/src/main/java/com/masai/Samosa.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Samosa { 4 | 5 | 6 | private double price; 7 | 8 | public Samosa(double price) { 9 | 10 | this.price = price; 11 | } 12 | 13 | 14 | public void init() { 15 | 16 | System.out.println("raw material collected for making samosa"); 17 | } 18 | 19 | 20 | public void destroy() { 21 | 22 | System.out.println("evening time now samosa is not available"); 23 | } 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 3 | org.eclipse.jdt.core.compiler.compliance=17 4 | org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled 5 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 6 | org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore 7 | org.eclipse.jdt.core.compiler.processAnnotations=disabled 8 | org.eclipse.jdt.core.compiler.release=disabled 9 | org.eclipse.jdt.core.compiler.source=17 10 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/src/main/java/com/masai/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.support.AbstractApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Demo { 7 | 8 | public static void main(String[] args) { 9 | 10 | AbstractApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 11 | 12 | Samosa s = ctx.getBean(Samosa.class,"s"); 13 | 14 | 15 | 16 | ctx.registerShutdownHook(); 17 | 18 | 19 | 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/src/main/java/com/masai/demo/Student.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | public class Student { 4 | 5 | private String name; 6 | private int age; 7 | private String city; 8 | 9 | 10 | 11 | 12 | public Student(String name, int age, String city) { 13 | this.name = name; 14 | this.age = age; 15 | this.city = city; 16 | } 17 | 18 | 19 | 20 | 21 | @Override 22 | public String toString() { 23 | return "Student Name : " + name + "\nAge : " + age + "\nCity : " + city + "\n=========\n"; 24 | } 25 | 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Autowiring_XML_2/src/main/java/com/masai/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Demo { 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 13 | 14 | Bus b1 = ctx.getBean(Bus.class,"bus"); 15 | 16 | System.out.println(b1); 17 | 18 | Passenger p1 = ctx.getBean(Passenger.class,"p1"); 19 | 20 | System.out.println(p1); 21 | 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/java/com/masai/demo/Bus.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | 5 | public class Bus { 6 | 7 | private int id; 8 | private String name; 9 | private String type; 10 | 11 | 12 | public Bus(int id, String name, String type) { 13 | this.id = id; 14 | this.name = name; 15 | this.type = type; 16 | } 17 | 18 | 19 | @Override 20 | public String toString() { 21 | return "Bus Id : " + id + "\nName : " + name + "\nType : " + type ; 22 | } 23 | 24 | 25 | 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/test/Main2.java: -------------------------------------------------------------------------------- 1 | package com.masai.test; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | import com.masai.model.Employee; 7 | 8 | public class Main2 { 9 | 10 | public static void main(String[] args) { 11 | 12 | 13 | 14 | ApplicationContext ctx = new ClassPathXmlApplicationContext("collectionConfig.xml"); 15 | 16 | Employee emp = ctx.getBean(Employee.class,"emp1"); 17 | 18 | 19 | 20 | System.out.println(emp); 21 | 22 | 23 | 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Autowiring_XML_1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Autowiring_XML_1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_XML_2/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Autowiring_XML_2 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_XML_1/src/main/java/com/masai/Address.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Address { 4 | 5 | private String state; 6 | private String city; 7 | 8 | 9 | public String getState() { 10 | return state; 11 | } 12 | public void setState(String state) { 13 | this.state = state; 14 | } 15 | public String getCity() { 16 | return city; 17 | } 18 | public void setCity(String city) { 19 | this.city = city; 20 | } 21 | @Override 22 | public String toString() { 23 | return "Address [state=" + state + ", city=" + city + "]"; 24 | } 25 | 26 | 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/src/main/java/com/masai/model/Teacher2.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | import java.util.List; 4 | 5 | public class Teacher2 { 6 | 7 | private String name; 8 | 9 | private List students; 10 | 11 | public void setName(String name) { 12 | this.name = name; 13 | } 14 | 15 | public void setStudents(List students) { 16 | this.students = students; 17 | } 18 | 19 | @Override 20 | public String toString() { 21 | return "Teacher Name : " + name + "\n\n=======Students Deatils=======\n\n" + students + "***********"; 22 | } 23 | 24 | 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/src/main/java/com/masai/demo/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Demo { 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 13 | 14 | 15 | // Student st1 = ctx.getBean(Student.class,"st1"); 16 | Student2 st2 = ctx.getBean(Student2.class,"st2"); 17 | 18 | // System.out.println(st1); 19 | 20 | System.out.println(st2); 21 | 22 | 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Autowiring_Annotation_1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Autowiring_With_Qualifier_1 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_1_With_XML_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_2_With_XML_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_3_With_XML_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_4_With_XML_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_5_With_XML_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_XML_2/src/main/java/com/masai/Bus.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Bus { 4 | 5 | private String id; 6 | private String name; 7 | private String type; 8 | 9 | 10 | public void setId(String id) { 11 | this.id = id; 12 | } 13 | 14 | public void setName(String name) { 15 | this.name = name; 16 | } 17 | 18 | 19 | public void setType(String type) { 20 | this.type = type; 21 | } 22 | 23 | @Override 24 | public String toString() { 25 | return "\nBus Id : " + id + "\nName : " + name + "\nType : " + type + "\n\n========================\n\n"; 26 | } 27 | 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_1_With_Annotation_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Practice_2_With_Annotation_Approach 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.m2e.core.maven2Nature 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/src/main/java/com/masai/demo/Teacher.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | public class Teacher { 4 | 5 | private int id; 6 | private String name; 7 | private String courseName; 8 | public void setId(int id) { 9 | this.id = id; 10 | } 11 | public void setName(String name) { 12 | this.name = name; 13 | } 14 | public void setCourseName(String courseName) { 15 | this.courseName = courseName; 16 | } 17 | @Override 18 | public String toString() { 19 | return "Teacher Id : " + id + "\nNme : " + name + "\nCourse Name : " + courseName + "\n=============\n"; 20 | } 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/java/com/masai/demo/PessengerWithConsAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | 5 | public class PessengerWithConsAnnotation { 6 | 7 | private int id; 8 | private String name; 9 | private Bus bus; 10 | 11 | 12 | @Autowired 13 | public PessengerWithConsAnnotation(int id, String name, Bus bus) { 14 | this.id = id; 15 | this.name = name; 16 | this.bus = bus; 17 | } 18 | 19 | 20 | @Override 21 | public String toString() { 22 | return "Pessenger id : " + id + "\nName : " + name + "\nBUS DETAILS :- \n" + bus + "\n**********\n"; 23 | } 24 | 25 | 26 | 27 | 28 | 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/java/com/masai/demo/PessengerWithVariableAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | 5 | public class PessengerWithVariableAnnotation { 6 | 7 | private int id; 8 | private String name; 9 | @Autowired 10 | private Bus bus; 11 | 12 | 13 | public PessengerWithVariableAnnotation(int id, String name, Bus bus) { 14 | this.id = id; 15 | this.name = name; 16 | this.bus = bus; 17 | } 18 | 19 | 20 | @Override 21 | public String toString() { 22 | return "Pessenger id : " + id + "\nName : " + name + "\nBUS DETAILS :- \n" + bus + "\n**********\n"; 23 | } 24 | 25 | 26 | 27 | 28 | 29 | } 30 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/src/main/java/com/masai/test/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai.test; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | import com.masai.model.Student; 7 | import com.masai.model.Teacher; 8 | import com.masai.model.Teacher2; 9 | 10 | public class Demo { 11 | 12 | public static void main(String[] args) { 13 | 14 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 15 | 16 | Teacher t1 = ctx.getBean(Teacher.class,"t1"); 17 | 18 | System.out.println(t1); 19 | 20 | 21 | Teacher2 t2 = ctx.getBean(Teacher2.class,"t2"); 22 | 23 | System.out.println(t2); 24 | } 25 | 26 | 27 | } 28 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/src/main/java/com/masai/EmployeeConstructorArg.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class EmployeeConstructorArg { 4 | 5 | private int id; 6 | 7 | private String name; 8 | 9 | private String city; 10 | 11 | private int salary; 12 | 13 | public EmployeeConstructorArg(int id, String name, String city, int salary) { 14 | super(); 15 | this.id = id; 16 | this.name = name; 17 | this.city = city; 18 | this.salary = salary; 19 | } 20 | 21 | @Override 22 | public String toString() { 23 | return "\nEmployee Id : " + id + "\nName : " + name + "\nCity : " + city + "\nSalary : " + salary + "\n\n==============\n\n"; 24 | } 25 | 26 | 27 | 28 | 29 | 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/src/main/java/com/masai/Main.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext; 5 | 6 | public class Main { 7 | 8 | 9 | public static void main(String[] args) { 10 | 11 | 12 | ApplicationContext ctx = new AnnotationConfigApplicationContext(Config.class); 13 | 14 | Bus b1 = ctx.getBean(Bus.class); 15 | b1.setId(573); 16 | b1.setMaxFare(600.23); 17 | b1.setMinFare(50); 18 | b1.setName("Sky Bus"); 19 | b1.setType("Routine Bus"); 20 | 21 | Passenger p1 = ctx.getBean(Passenger.class); 22 | p1.setId(1); 23 | p1.setName("Ram"); 24 | 25 | System.out.println(p1); 26 | 27 | 28 | 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/java/com/masai/demo/PessengerWithSetterAnnotation.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | 5 | public class PessengerWithSetterAnnotation { 6 | 7 | 8 | private int id; 9 | private String name; 10 | private Bus bus; 11 | 12 | public void setId(int id) { 13 | this.id = id; 14 | } 15 | 16 | public void setName(String name) { 17 | this.name = name; 18 | } 19 | 20 | @Autowired 21 | public void setBus(Bus bus) { 22 | this.bus = bus; 23 | } 24 | 25 | @Override 26 | public String toString() { 27 | return "Pessenger id : " + id + "\nName : " + name + "\nBUS DETAILS :- \n" + bus + "\n**********\n"; 28 | } 29 | 30 | 31 | 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/src/main/java/com/masai/Main.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.annotation.AnnotationConfigApplicationContext; 5 | 6 | public class Main { 7 | 8 | public static void main(String[] args) { 9 | 10 | ApplicationContext ctx = new AnnotationConfigApplicationContext(Config.class); 11 | 12 | Address ad1 = ctx.getBean(Address.class,"getAddress"); 13 | ad1.setAddressId(582); 14 | ad1.setCity("Indore"); 15 | ad1.setCountry("India"); 16 | ad1.setState("Madhya Pradesh"); 17 | 18 | Employee emp1 = ctx.getBean(Employee.class); 19 | emp1.setEmpId(24); 20 | emp1.setName("Karam"); 21 | emp1.setSalary(60000); 22 | 23 | System.out.println(emp1); 24 | 25 | 26 | 27 | 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/src/main/java/com/masai/Passenger.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Component; 5 | 6 | 7 | @Component 8 | public class Passenger { 9 | 10 | private int id; 11 | private String name; 12 | @Autowired 13 | private Bus bus; 14 | 15 | 16 | public void setId(int id) { 17 | this.id = id; 18 | } 19 | 20 | 21 | public void setName(String name) { 22 | this.name = name; 23 | } 24 | 25 | 26 | public void setBus(Bus bus) { 27 | this.bus = bus; 28 | } 29 | 30 | 31 | @Override 32 | public String toString() { 33 | return "Passenger Id : " + id + "\nName : " + name + bus; 34 | } 35 | 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/src/main/java/com/masai/EmployeeSetter.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class EmployeeSetter { 4 | 5 | private int id; 6 | private String name; 7 | private String city; 8 | private int salary; 9 | 10 | 11 | public void setId(int id) { 12 | this.id = id; 13 | } 14 | 15 | public void setName(String name) { 16 | this.name = name; 17 | } 18 | 19 | public void setCity(String city) { 20 | this.city = city; 21 | } 22 | 23 | public void setSalary(int salary) { 24 | this.salary = salary; 25 | } 26 | 27 | @Override 28 | public String toString() { 29 | return "\nEmployee ID : " + id + "\nName : " + name + "\nCity : " + city + "\nSalary : " + salary + "\n\n============\n\n"; 30 | } 31 | 32 | 33 | 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/test/Main.java: -------------------------------------------------------------------------------- 1 | package com.masai.test; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | import com.masai.model.Car; 7 | import com.masai.model.RollNumbers; 8 | import com.masai.model.Student; 9 | 10 | public class Main { 11 | 12 | public static void main(String[] args) { 13 | 14 | 15 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 16 | 17 | Student st = ctx.getBean(Student.class, "student1"); 18 | 19 | Car car = ctx.getBean(Car.class,"car1"); 20 | 21 | RollNumbers rollsNumbers = ctx.getBean(RollNumbers.class,"numbers"); 22 | 23 | System.out.println(rollsNumbers); 24 | 25 | System.out.println(st); 26 | System.out.println(car); 27 | 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /Autowiring_XML_2/src/main/java/com/masai/Passenger.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | public class Passenger { 4 | 5 | 6 | private int id; 7 | private String name; 8 | private int age; 9 | private Bus bus; 10 | 11 | public Passenger() { 12 | 13 | } 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | public void setId(int id) { 26 | this.id = id; 27 | } 28 | 29 | 30 | public void setName(String name) { 31 | this.name = name; 32 | } 33 | 34 | 35 | public void setAge(int age) { 36 | this.age = age; 37 | } 38 | 39 | 40 | public void setBus(Bus bus) { 41 | this.bus = bus; 42 | } 43 | 44 | 45 | @Override 46 | public String toString() { 47 | return "Passenger Id : " + id + "\nName : " + name + "\nAge : " + age + "\n*********BUS INFORMATION*********\n" + bus; 48 | } 49 | 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/model/RollNumbers.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | import java.util.List; 4 | import java.util.Set; 5 | 6 | public class RollNumbers { 7 | 8 | private List rollNumbers; 9 | 10 | private Set setOfNumbers; 11 | 12 | public RollNumbers() { 13 | // TODO Auto-generated constructor stub 14 | } 15 | 16 | 17 | 18 | public void setSetOfNumbers(Set setOfNumbers) { 19 | this.setOfNumbers = setOfNumbers; 20 | } 21 | 22 | 23 | 24 | public void setRollNumbers(List rollNumbers) { 25 | this.rollNumbers = rollNumbers; 26 | } 27 | 28 | 29 | 30 | @Override 31 | public String toString() { 32 | return "List of Roll Numbers : " + rollNumbers + "\n" 33 | + "Set Of Numbers : " + setOfNumbers + "\n===\n"; 34 | } 35 | 36 | 37 | 38 | 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/src/main/java/com/masai/Employee.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | 6 | @Service 7 | public class Employee { 8 | 9 | private int EmpId; 10 | private String name; 11 | private int salary; 12 | @Autowired 13 | private Address add; 14 | 15 | public void setEmpId(int empId) { 16 | EmpId = empId; 17 | } 18 | public void setName(String name) { 19 | this.name = name; 20 | } 21 | public void setSalary(int i) { 22 | this.salary = i; 23 | } 24 | public void setAdd(Address add) { 25 | this.add = add; 26 | } 27 | @Override 28 | public String toString() { 29 | return "Employee Id : " + EmpId + "\nName : " + name + "\nSalary : " + salary + add; 30 | } 31 | 32 | 33 | 34 | 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/src/main/java/com/masai/Address.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | 4 | 5 | 6 | public class Address { 7 | 8 | private int addressId; 9 | private String state; 10 | private String city; 11 | private String country; 12 | 13 | 14 | public void setAddressId(int addressId) { 15 | this.addressId = addressId; 16 | } 17 | 18 | 19 | public void setState(String state) { 20 | this.state = state; 21 | } 22 | 23 | 24 | public void setCity(String city) { 25 | this.city = city; 26 | } 27 | 28 | 29 | public void setCountry(String country) { 30 | this.country = country; 31 | } 32 | 33 | 34 | @Override 35 | public String toString() { 36 | return "\n*******Address*******\nAddress Id : " + addressId + "\nState : " + state + "\nCity : " + city + "\nCountry : " + country + "\n*********"; 37 | } 38 | 39 | 40 | 41 | 42 | 43 | } 44 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Autowiring_XML_2/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Autowiring_XML_1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowring_XML 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Autowiring_XML_2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_XML_2 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | 17 10 | 17 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_Annotation_1 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_Annotation_1 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_4_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_5_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | 17 10 | 17 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Autowiring_XML_1/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_3_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_1_With_Annotation_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_1_With_Annotation_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Autowiring_XML_1/target/classes/META-INF/maven/com.masai/Autowring_XML/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowring_XML 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/java/com/masai/demo/Test.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.context.ApplicationContext; 4 | import org.springframework.context.support.ClassPathXmlApplicationContext; 5 | 6 | public class Test { 7 | 8 | public static void main(String[] args) { 9 | 10 | ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml"); 11 | 12 | Bus b = ctx.getBean(Bus.class,"b1"); 13 | 14 | System.out.println(b); 15 | 16 | PessengerWithConsAnnotation p1 = ctx.getBean(PessengerWithConsAnnotation.class,"pwca1"); 17 | System.out.println("\n\nBus Autowiring using Annotation on Constructor Injection\n" + p1); 18 | 19 | 20 | PessengerWithSetterAnnotation p2 = ctx.getBean(PessengerWithSetterAnnotation.class,"pwsa1"); 21 | System.out.println("\n\nBus Autowiring using Annotation on Setter Injection On Bus\n" + p2); 22 | 23 | 24 | 25 | PessengerWithVariableAnnotation p3 = ctx.getBean(PessengerWithVariableAnnotation.class,"pwva1"); 26 | System.out.println("\n\nBus Autowiring using Annotation on Variable On bus variable\n" + p3); 27 | 28 | 29 | 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/src/main/java/com/masai/Bus.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import org.springframework.stereotype.Component; 4 | 5 | @Component 6 | public class Bus { 7 | 8 | private int id; 9 | private String name; 10 | private String type; 11 | private double minFare; 12 | private double maxFare; 13 | 14 | 15 | public void setId(int id) { 16 | this.id = id; 17 | } 18 | 19 | 20 | public void setName(String name) { 21 | this.name = name; 22 | } 23 | 24 | 25 | public void setType(String type) { 26 | this.type = type; 27 | } 28 | 29 | 30 | public void setMinFare(double minFare) { 31 | this.minFare = minFare; 32 | } 33 | 34 | 35 | public void setMaxFare(double maxFare) { 36 | this.maxFare = maxFare; 37 | } 38 | 39 | 40 | @Override 41 | public String toString() { 42 | return "\n*******Bus Details*******\nID : " + id + "\nNAME : " + name + "\nTYPE : " + type + "\nMINIMUM FARE : " + minFare + "\nMAXIMUM FARE : " + maxFare 43 | ; 44 | } 45 | 46 | 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /Autowiring_XML_2/target/classes/META-INF/maven/com.masai/Autowiring_XML_2/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_XML_2 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | 17 10 | 17 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/META-INF/maven/com.masai/Autowiring_Annotation_1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_Annotation_1 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/META-INF/maven/com.masai/Autowiring_Annotation_1/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Autowiring_Annotation_1 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_3_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_3_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_4_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_4_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/META-INF/maven/com.masai/Practice_5_With_XML_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_5_With_XML_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 9 | 17 10 | 17 11 | 12 | 13 | 14 | 15 | 16 | 17 | org.springframework 18 | spring-core 19 | 6.0.7 20 | 21 | 22 | 23 | 24 | org.springframework 25 | spring-context 26 | 6.0.7 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/target/classes/META-INF/maven/com.masai/Practice_1_With_Annotation_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_1_With_Annotation_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/target/classes/META-INF/maven/com.masai/Practice_1_With_Annotation_Approach/pom.xml: -------------------------------------------------------------------------------- 1 | 2 | 4.0.0 3 | com.masai 4 | Practice_1_With_Annotation_Approach 5 | 0.0.1-SNAPSHOT 6 | 7 | 8 | 17 9 | 17 10 | 11 | 12 | 13 | 14 | 15 | 16 | org.springframework 17 | spring-core 18 | 6.0.7 19 | 20 | 21 | 22 | 23 | org.springframework 24 | spring-context 25 | 6.0.7 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/src/main/java/com/masai/Demo.java: -------------------------------------------------------------------------------- 1 | package com.masai; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.context.support.AbstractApplicationContext; 6 | import org.springframework.context.support.ClassPathXmlApplicationContext; 7 | 8 | public class Demo { 9 | 10 | private List employees; 11 | private List employees2; 12 | 13 | public void setEmployees(List employees) { 14 | this.employees = employees; 15 | } 16 | 17 | public void myInit() { 18 | System.out.println("inside init method"); 19 | } 20 | 21 | 22 | public void setEmployees2(List employees2) { 23 | this.employees2 = employees2; 24 | } 25 | 26 | public void destroy() { 27 | System.out.println("inside destroy method"); 28 | } 29 | 30 | 31 | public static void main(String[] args) { 32 | 33 | AbstractApplicationContext aactx = new ClassPathXmlApplicationContext("applicationContext.xml"); 34 | 35 | Demo d1 = aactx.getBean(Demo.class,"d1"); 36 | 37 | System.out.println(d1.employees); 38 | System.out.println(d1.employees2); 39 | 40 | 41 | 42 | aactx.close(); 43 | 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/model/Student.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | public class Student { 4 | 5 | private int id; 6 | private String name; 7 | private String address; 8 | 9 | public Student() { 10 | // TODO Auto-generated constructor stub 11 | } 12 | 13 | public Student(int id, String name, String address) { 14 | super(); 15 | this.id = id; 16 | this.name = name; 17 | this.address = address; 18 | } 19 | 20 | 21 | 22 | public int getId() { 23 | return id; 24 | } 25 | 26 | 27 | 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | 32 | 33 | 34 | public String getName() { 35 | return name; 36 | } 37 | 38 | 39 | 40 | public void setName(String name) { 41 | this.name = name; 42 | } 43 | 44 | 45 | 46 | public String getAddress() { 47 | return address; 48 | } 49 | 50 | 51 | 52 | public void setAddress(String address) { 53 | // System.out.println("setting student address"); 54 | this.address = address; 55 | } 56 | 57 | 58 | 59 | @Override 60 | public String toString() { 61 | return "Id : " + id + "\nName : " + name + "\nAddress : " + address + "\n===========\n"; 62 | } 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/src/main/java/com/masai/model/Student.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | public class Student { 4 | 5 | private int id; 6 | private String name; 7 | private String address; 8 | 9 | public Student() { 10 | // TODO Auto-generated constructor stub 11 | } 12 | 13 | public Student(int id, String name, String address) { 14 | super(); 15 | this.id = id; 16 | this.name = name; 17 | this.address = address; 18 | } 19 | 20 | 21 | 22 | public int getId() { 23 | return id; 24 | } 25 | 26 | 27 | 28 | public void setId(int id) { 29 | this.id = id; 30 | } 31 | 32 | 33 | 34 | public String getName() { 35 | return name; 36 | } 37 | 38 | 39 | 40 | public void setName(String name) { 41 | this.name = name; 42 | } 43 | 44 | 45 | 46 | public String getAddress() { 47 | return address; 48 | } 49 | 50 | 51 | 52 | public void setAddress(String address) { 53 | // System.out.println("setting student address"); 54 | this.address = address; 55 | } 56 | 57 | 58 | 59 | @Override 60 | public String toString() { 61 | return "Id : " + id + "\nName : " + name + "\nAddress : " + address + "\n===========\n"; 62 | } 63 | 64 | 65 | 66 | 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/src/main/java/com/masai/demo/Student.java: -------------------------------------------------------------------------------- 1 | package com.masai.demo; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.beans.factory.annotation.Qualifier; 5 | 6 | public class Student { 7 | 8 | private int rollNo; 9 | private String name; 10 | private String city; 11 | private int age; 12 | @Autowired 13 | @Qualifier("t1") 14 | private Teacher teacher; 15 | 16 | 17 | 18 | 19 | 20 | 21 | public void setRollNo(int rollNo) { 22 | this.rollNo = rollNo; 23 | } 24 | 25 | 26 | 27 | 28 | public void setName(String name) { 29 | this.name = name; 30 | } 31 | 32 | 33 | 34 | 35 | public void setCity(String city) { 36 | this.city = city; 37 | } 38 | 39 | 40 | 41 | 42 | public void setAge(int age) { 43 | this.age = age; 44 | } 45 | 46 | 47 | 48 | 49 | public void setTeacher(Teacher teacher) { 50 | this.teacher = teacher; 51 | } 52 | 53 | 54 | 55 | 56 | @Override 57 | public String toString() { 58 | return "Student Roll Number : " + rollNo + "\nName : " + name + "\nCity : " + city + "\nAge : " + age + "\n\n******Techer Details******\n"+teacher; 59 | } 60 | 61 | 62 | 63 | 64 | 65 | 66 | } 67 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 20 | 21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 20 | 21 | 22 | 27 | 28 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/target/classes/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/src/main/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/resources/collectionConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 9344728822 23 | 4894845454 24 | 3873948934 25 | 4894655690 26 | 27 | 28 | 29 | 30 | 31 | 32 | Indore 33 | Jaipur 34 | Goa 35 | Shimla 36 | Ujjain 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | Shiva 53 | shiv1234 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/model/Employee.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | import java.util.List; 4 | import java.util.Map; 5 | import java.util.Properties; 6 | import java.util.Set; 7 | 8 | public class Employee { 9 | 10 | 11 | private String name; 12 | private List phones; 13 | private Set addresses; 14 | private Map courses; 15 | private Properties userInfo; 16 | 17 | 18 | public Employee() { 19 | // TODO Auto-generated constructor stub 20 | } 21 | 22 | 23 | public Employee(String name, List phones, Set addresses, Map courses) { 24 | super(); 25 | this.name = name; 26 | this.phones = phones; 27 | this.addresses = addresses; 28 | this.courses = courses; 29 | } 30 | 31 | 32 | public String getName() { 33 | return name; 34 | } 35 | 36 | 37 | public void setName(String name) { 38 | this.name = name; 39 | } 40 | 41 | 42 | public List getPhones() { 43 | return phones; 44 | } 45 | 46 | 47 | public void setPhones(List phones) { 48 | this.phones = phones; 49 | } 50 | 51 | 52 | public Set getAddresses() { 53 | return addresses; 54 | } 55 | 56 | 57 | public void setAddresses(Set addresses) { 58 | this.addresses = addresses; 59 | } 60 | 61 | 62 | public Map getCourses() { 63 | return courses; 64 | } 65 | 66 | 67 | public void setCourses(Map courses) { 68 | this.courses = courses; 69 | } 70 | 71 | 72 | 73 | 74 | public Properties getUserInfo() { 75 | return userInfo; 76 | } 77 | 78 | 79 | public void setUserInfo(Properties userInfo) { 80 | this.userInfo = userInfo; 81 | } 82 | 83 | 84 | @Override 85 | public String toString() { 86 | return "Employee Name : " + name + "\nPhones : " + phones + ",\nAddresses : " + addresses + "\nCourses : " + courses 87 | +"\nUser Info : " + userInfo + "\n========\n"; 88 | } 89 | 90 | 91 | 92 | 93 | 94 | 95 | } 96 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/src/main/java/com/masai/model/Car.java: -------------------------------------------------------------------------------- 1 | package com.masai.model; 2 | 3 | public class Car { 4 | 5 | 6 | private int idNumber; 7 | 8 | private String modelName; 9 | 10 | private String compnayName; 11 | 12 | private double price; 13 | 14 | private String yearOfLuanching; 15 | 16 | 17 | public Car() { 18 | // TODO Auto-generated constructor stub 19 | } 20 | 21 | 22 | public Car(int idNumber, String modelName, String compnayName, double price, String yearOfLuanching) { 23 | super(); 24 | this.idNumber = idNumber; 25 | this.modelName = modelName; 26 | this.compnayName = compnayName; 27 | this.price = price; 28 | this.yearOfLuanching = yearOfLuanching; 29 | } 30 | 31 | 32 | public int getIdNumber() { 33 | return idNumber; 34 | } 35 | 36 | 37 | public void setIdNumber(int idNumber) { 38 | this.idNumber = idNumber; 39 | } 40 | 41 | 42 | public String getModelName() { 43 | return modelName; 44 | } 45 | 46 | 47 | public void setModelName(String modelName) { 48 | this.modelName = modelName; 49 | } 50 | 51 | 52 | public String getCompnayName() { 53 | return compnayName; 54 | } 55 | 56 | 57 | public void setCompnayName(String compnayName) { 58 | this.compnayName = compnayName; 59 | } 60 | 61 | 62 | public double getPrice() { 63 | return price; 64 | } 65 | 66 | 67 | public void setPrice(double price) { 68 | this.price = price; 69 | } 70 | 71 | 72 | public String getYearOfLuanching() { 73 | return yearOfLuanching; 74 | } 75 | 76 | 77 | public void setYearOfLuanching(String yearOfLuanching) { 78 | this.yearOfLuanching = yearOfLuanching; 79 | } 80 | 81 | 82 | @Override 83 | public String toString() { 84 | return "Car Id Number : " + idNumber + "\nModel Name : " + modelName + "\nCompnay Name : " + compnayName + "\nPrice : " 85 | + price + "\nYear Of Luanching : " + yearOfLuanching + "\n===============\n"; 86 | } 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | } 95 | -------------------------------------------------------------------------------- /Practice_1_With_XML_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/resources/applicationContext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 14 | 15 | 16 | 17 | 18 | 19 | 27 | 28 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 1 55 | 2 56 | 3 57 | 4 58 | 5 59 | 60 | 61 | 62 | 63 | 64 | 65 | 5 66 | 5 67 | 6 68 | 7 69 | 8 70 | 9 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /Autowiring_XML_1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Autowiring_XML_2/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Autowiring_Annotation_1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Autowiring_With_Qualifier_1/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_2_With_XML_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_3_With_XML_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_4_With_XML_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_5_With_XML_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_1_With_Annotation_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /Practice_2_With_Annotation_Approach/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Spring Projects ✨ 2 | 3 | This repository contains a collection of Spring projects that demonstrate different approaches to building applications using the Spring framework. The projects showcase both annotation-based and XML-based configurations, providing a comprehensive overview of Spring's flexibility and power. 4 | 5 | ## Projects 📂 6 | 7 | 1. **Project 1: Annotation-Based Approach 🚀** 8 | - This project showcases the usage of annotations for configuring Spring beans, dependency injection, and other Spring features. 9 | - The code demonstrates best practices and common patterns used in Spring applications. 10 | - Examples include the usage of `@Component`, `@Autowired`, `@Controller`, `@Service`, and more. 11 | 12 | 2. **Project 2: XML-Based Approach 📄** 13 | - This project focuses on the XML-based configuration style in Spring. 14 | - It provides examples of defining beans, dependency injection, and other Spring features using XML configuration files. 15 | - The code demonstrates how to set up application contexts, wire dependencies, and handle advanced scenarios using XML. 16 | 17 | ## Getting Started 🚀 18 | 19 | To run any of the projects in this repository, follow these steps: 20 | 21 | 1. Clone the repository using the following command: 22 | ``` 23 | git clone https://github.com/Shubh2-0/Spring-Projects-.git 24 | ``` 25 | 26 | 2. Navigate to the specific project you want to explore: 27 | ``` 28 | cd spring-projects/project-name 29 | ``` 30 | 31 | 3. Follow the project-specific instructions provided in their respective directories. 32 | 33 | ## Usage 🛠️ 34 | 35 | Feel free to explore, modify, and use these projects to learn more about Spring. Each project is self-contained and provides a detailed README with instructions on how to run it. 36 | 37 | ## Resources 📚 38 | 39 | In addition to the code, this repository also contains image files that can be used as references or visual aids when working with the projects. The images are located in the `images/` directory. 🖼️ 40 | 41 | ## Contributing 🤝 42 | 43 | If you'd like to contribute to this repository, please follow these steps: 44 | 45 | 1. Fork the repository on GitHub. 46 | 47 | 2. Create a new branch with a descriptive name for your feature or bug fix. 48 | 49 | 3. Make your changes and commit them with clear and concise messages. 50 | 51 | 4. Push your changes to your forked repository. 52 | 53 | 5. Submit a pull request to the main repository, explaining the purpose and changes of your contribution. 54 | 55 | Please ensure that your code adheres to the existing coding style and conventions used in this repository. 56 | 57 | 58 | ## Acknowledgements 🙏 59 | 60 | The projects in this repository are inspired by various Spring tutorials, documentation, and community resources. We extend our gratitude to the Spring community for their valuable contributions. 61 | 62 | If you find these projects helpful, please consider giving them a ⭐️ on GitHub and sharing them with others who may benefit from them. 63 | 64 | ## 📬 Contact 65 | 66 | If you want to contact me, you can reach me through below handles. 67 | 68 |

69 | linkedin  70 | mail-me  71 | whatsapp-me  72 |

73 | 74 |
75 | 76 |
77 | 💓Happy Coding😄💻 78 |
79 | 80 | 81 | --------------------------------------------------------------------------------