You are on page 1of 4

BIT > Final Year Project > Server App > Spring > Project Initialize

(1) Create the initial project folder architecture with “start.spring.io”


Select and fill the project parameters as follows. Add the following dependencies.

(2) Click of “Generate”  Will download a Zip File  Unzip  Place in the following Folder
(3) Open the Project with IntelliJ-IDEA

(4) Allow gradle to download the dependencies (Spring Libraries). It will take time depend on Internet Speed.
( If this is the 1st time, IDEA will first download the Gradle and then Dependencies)

Gradle will configure, download dependencies, indexing libraries


Observe the Libraries downloaded against the dependency specified in “build.gradle” and possible subsequent
dependencies.

(3) Add Application Properties for “Spring-Data/Hibernate” Libraries to connect with the Database
(If you missed to set these properties, spring-boot will not run the project successfully)

spring.datasource.url=jdbc:mysql://localhost:3306/earthuniversity
spring.datasource.username=root
spring.datasource.password=1234
(4) Build the Project (It will compile and ready the app for running)
(5) Run the Project to launch the Server App in a Virtual Web Server

(6) Open a Web Browser (Chrome), and access “localhost:8080”


Spring Security will redirect you to default login page provided by the “spring-security” framework
[Spring Security will apply series of security filters to sanitize requests by default]
So you do not need to protect your system from various security vulnerabilities such as HTML-Injection, SQL-
Injection …many more

Department of Information Technology


Earth University College

You might also like