Ini catatan personal saya, bukan tutorial... |
Spring Boot |
Pada catatan belajar saya kali ini saya memulai dari video berikut ini yang berjudul "How to Create a Spring Boot Web Application".
How to Create a Spring Boot Web Application
A step-by-step video tutorial that teaches you how to develop a Spring MVC web application with JSP/ThymeLeaf using Spring Boot and Eclipse IDE. 01:43 Create SpringBoot Project 13:46 Create Welcome Page 18:31 Create Spring Controller Class 22:48 Create Domain Model Class 24:24 Create Business Class 31:06 Use JSP with SpringBoot 47:52 Use ThymeLeaf with SpringBoot 55:15 Configure Logging 58:47 Configure Tomcat Server 1:03:17 Package to Jar (ThymeLeaf) 1:07:59 Problems with JAR packaging (JSP) 1:09:52 Package to WAR (JSP) Read the article: http://www.codejava.net/frameworks/sp... Download sample project here: http://www.codejava.net/download-atta...
Versi Java yang saya pakai |
1. Generate Spring Project https://start.spring.io/
Download dan Generate project sebagai zip. |
Extracted project. |
Updating maven project configuration. |
Sabar hingga ini selesai. |
Maven Project created and ready. |
2. Hapus Test karena tidak dibahas di Video
Hapus test file dan juga dari pom.xml. |
Hasil penampakan setelah dihapus. |
3. Main Class dari Aplikasi
Main Class |
4. Running Project
Run Spring Boot App |
Running Project |
7. Setup JSP Support
> Install Java EE Tools
> Menambahkan dukungan JSP - Standard Server Page (JSP)
Dependency untuk JSP |
Dependency untuk JSP |
> Kode Untuk test JSP
> Test Running JSP
> Set JSP View Suffix dan Prefix
Set prefix folder lokasi dan suffix untuk extension |
8. Buat Halaman Contact
> Index
Buat index.html lalu run as spring boot app |
Hasilnya ditampilkan di browser (Bila diklik akan ke list contact dibawah) |
> Contact List
File contact.jsp. |
Tampilan Sementara. |
> Menambahkan JSP - Standard Tag Library (JSTL)
Tambahkan dukungan JSTL |
Hasil Akhir. |
9. Tambahan Pengetahuan
Rubah port |
Comments
Post a Comment