Learning Log
- 30 September 2025 → Completed Setter Injection using Spring XML configuration.
- 1 October 2025 → Completed Constructor Injection, explored p-schema & c-schema, and resolved ambiguity issues with constructor-arg order.
- 2 October 2025 → Completed Bean LifeCycle, explored 3 method of Configuring Bean Lifecycle:- Using XML Config, Using Interface( InitializingBean, Disposable Bean ).
- 3 October 2025 → Completed AutoWiring covered byName, byType, constructor and @autowired annotation.
- 4 October 2025 → Completed Standalone Collection covered.
- 5 October 2025 → Completed Stereotype Annotation, SingleTon, Bean Scope, Spring expression language covered.
- 6 October 2025 → Completed Spring JDBC covering......
- 13 October 2025 → After a long break( due to interviews ) Spring JDBC started implementation......
- 21 October 2025 → Enjoyed Diwali Spring JDBC started implementation......
- 22 October 2025 → Spring JDBC implemented basic jdbc CRUD operation...
- 12 November 2025 → Row Mapper and ORM
- 18 November 2025 → Hibernate
- 19 November 2025 → Spring Hibernate
- 20 November 2025 → MVC
- 21 November 2025 → MVC- First understanding servlet
- 22 November 2025 → MVC- Completed
- Created a Maven project
- Added spring-context dependency
- Implemented a Student POJO bean
- Wired the bean in
config.xmlusing both setter and constructor injection - Explored p-schema and c-schema for cleaner XML configuration
- Learned about ambiguity handling in constructor arguments
- Loaded Spring context in
App.javaand used the bean successfully
Spring-Practice
├─ src/main/java/org/example
│ ├─ App.java
│ └─ Student.java
├─ src/main/resources
│ └─ config.xml
└─ pom.xmlNote: config.xml must be inside src/main/resources so it is available on the classpath.
-
From IDE: run App.main()
-
mvn clean compilemvn -Dexec.mainClass="org.example.App" exec:java # if exec plugin configured
-
Ensure target/classes/config.xml exists after build.
-
If Spring complains about parsing config.xml, check file location, XML syntax, and encoding (use UTF-8 without BOM).
Currently learning from this YouTube playlist:Spring Framework Tutorial - Telusko