You are on page 1of 2

Date : 28/04/2020

Spring Boot setup


----------------------------------------------------------------------------
Duration : 1:15Min 1:30 min
Start timing : 6:10 PM
Payment and Queries :+91- 6302 968 665 (Srikanth)

javabyraghu@gmail.com
https://www.facebook.com/groups/thejavatemple/
-----------------------------------------------------------------------
Step#1 Download and Install JDK 1.8 (or higher, recomanded JDK14)

Step#2 Download STS Tool


Link: https://spring.io/tools
> Download as JAR > Double click on It for extracting
> Open Extracted Folder (ex: D:\sts-4.6.1.RELEASE)
> Click on Option : SpringToolSuite4 (to start)

Step#3 Provide workspace (folder name to store projects)


Ex: D:/SpringBoot6PM_APRIL_2020
> click on Finish

Step#4 Create one Project (First Project)


> File > new > Spring Starter Project > Enter details

Name : SpringBootFirstApp

GroupId : in.nit
ArtifactId : SpringBootFirstApp
Version : 1.0
Package : in.nit

> Next > Next

(** wait for 10 to 15 for downloading setup)

Step#5 Write code for req. and run application


> open starter class > right click on Project > Run As
> Spring Boot App.

--------Project Created with Folder System given ---------------

-----Key Shortcuts-------------------------------------------------
1. ctrl and + / ctrl and - Font Zoom Adjustments

2. select code and press F3 - To open source wher it is defined

========================== Working with Container ===========================


To communicate with Spring containre, Spring f/w has provided interface
for two types of container.

a. BeanFactory (old container) [I]:


It is interface given by Spring f/w used to communicate with container
ie reading objects..etc
=> It is legacy container
=> Supports only XML Based Configuration
=> It has only one Impl class : XmlBeanFactory(C)

b. ApplicationContext (New container) [I] :


It is interface given by Spring f/w used to communicate with container
ie reading objects..etc

=> It is new container


=> Supports XML/Java/Annotation Based Configuration
=> It has multiple Impl classes:
ClasspathXmlApplicationContext (C)
FileSystemXmlApplicationContext(C)
AnnotationConfigApplicationContext(C)
..etc
=============================================================================

You might also like