
Java Spring Framework
Java Spring Framework
1. Java Spring Framework – Introduction
- Benefits of Using the Spring Framework
- Dependency Injection (DI)
- Aspect Oriented Programming (AOP)
2. Spring Framework – Architecture
- Core Container
- Data Access/Integration
- Web
- Other
- AOP Module
- Aspects Module
- Instrumentation Module
- Messaging Module
- Test Module
3. Environment Setup for Sprint Framework Project
- Install & Setup Java – jdk 8 and set path veriable – https://www.oracle.com/technetwork/java/javase/downloads/index.html
- Install & Setup Tomcat Server 8.5 – https://tomcat.apache.org/download-80.cgi#8.5.37
- Download Zip & Setup Apache Common Logging API 1.2 – https://commons.apache.org/proper/commons-logging/download_logging.cgi
- Download Zip & Setup Spring Framework Libraries 5.0 – https://repo.spring.io/release/org/springframework/spring/5.1.4.RELEASE/
- Install & Setup Eclipse IDE – https://www.eclipse.org/downloads/
4. Creating Your first Java Spring Framework program
- Create Simple Java Project in Eclipse
- Add Required libraries
- In Project Explorer, right click on project folder -> Properties -> Java Build Path -> Libraries -> Add External JARs [Add Spring JARs and Apache common logging API]
- Create Source file
- Right click on src filder -> Select class file -> Create HelloSpring.java without main method in study package
- Create MainApp.java with main method in study package
- Create beans.xml file => Right click on src folder -> New -> Other -> XML -> XML file -> create Beans.xml
HelloSpring.java
https://gist.github.com/ubuntu-prasad/f3a9a10c17e2a94ab3e4a4b5e79d4188
MainApp.java
https://gist.github.com/ubuntu-prasad/6994ef461465927f939bcc757cb426d3
Beans.xml
https://gist.github.com/ubuntu-prasad/c880037a9c2e919ef3b632a8218c3069
– Running The program
— In MainApp.java file -> Right click -> Run As -> Java Application
output -> Your Message Hello Spring World!
5. IoC and DI
- IoC – Inversion of Control
- DI – Dependency Injection
Tag:eclipse, ide, Java, java spring, rest api, spring, spring framework



