A simple Spring Core project demonstrating basic concepts of the Spring Framework, including Dependency Injection (DI), Bean Management, and Collection Injection.
SpringCore/ β βββ src/main/java/com/ β βββ Address.java # POJO for Address β βββ Employee.java # Employee class with Set and Map collections β βββ Student.java # Student class with nested Address bean β βββ Sim.java # Interface example β βββ Test.java # Main class to run the Spring application β βββ src/main/resources/ β βββ beans.xml # Spring configuration file β βββ pom.xml # Maven configuration file
- Dependency Injection
- Setter Injection
- Constructor Injection
- Collection Injection
Set
for skillsMap
for hobbies
- Nested Beans
Student
containsAddress
bean
- Spring ApplicationContext
- Fetching beans from XML configuration
- Java 17+
- Maven 3+
- IDE (Eclipse, IntelliJ IDEA, VS Code)
- Spring Framework 6.x
- Clone the repository:
git clone https://github.com/TejanyaKumar/SpringCore.git