background top icon
background center wave icon
background filled rhombus icon
background two lines icon
background stroke rhombus icon

Download "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2"

Download this video with UDL Client
installarrow down icon
  • Video mp4 HD+ with sound
  • Mp3 in the best quality
  • Any size files
Video tags
|

Video tags

springboot
thymeleaf
java guides
javaguides
Subtitles
|

Subtitles

subtitles menu arrow
  • ruRussian
Download
00:00:00
hi everyone welcome to spring boot time
00:00:02
lip groove database project part 2 in
00:00:05
part 1 we have created and setup supreme
00:00:07
but projecting eclipses STS idea and we
00:00:09
have also created and setup database
00:00:11
alright in this part 2 when I implement
00:00:14
end to end list employee feature in part
00:00:19
1 we have created spring boot project we
00:00:21
have also created a packaging structure
00:00:23
and then we have configured bicycle
00:00:25
configuration and we have also created
00:00:28
JP entity alright now we're going to
00:00:32
implement least the apply feature
00:00:34
step-by-step okay first we'll start with
00:00:38
a repository so let's go in let's
00:00:41
right-click on a repository new and then
00:00:42
choose interface and let's give our name
00:00:45
as my repository
00:00:53
all right and let's extend this
00:01:01
interface - JP repository okay so
00:01:08
basically JP repository exposes crew
00:01:10
database operations for the employee
00:01:12
entity ok and here ID is nothing but the
00:01:18
type of the primary key let's annotate
00:01:21
this interface with at repository
00:01:22
annotation all right great now we can
00:01:29
able to get a crew database operations
00:01:31
for employment today by using JP
00:01:34
repository now let's call and let's
00:01:38
create a service right click new and
00:01:41
choose class so first we will create our
00:01:44
interface right click new and then
00:01:46
choose interface let's name it as my
00:01:50
service okay and let's quickly create a
00:01:54
method list
00:01:59
please stop them project let's call this
00:02:04
method ads and get all employees okay
00:02:11
pretty simple method now we are going to
00:02:15
create a class which implements this
00:02:17
interface let's name this class has the
00:02:21
employee service
00:02:22
I am p.m. okay and this class will
00:02:28
implement the employee service interface
00:02:32
and then we can override the method here
00:02:37
and we simply first auto hire my report
00:02:44
okay so here we are just injecting
00:02:46
employee repository using a data wide
00:02:48
annotation
00:02:57
now here we return a list of employees
00:03:00
right so return and play poetry dot find
00:03:05
out method so file on find all method
00:03:08
basically returns a list of employees
00:03:10
you look at the return type of find all
00:03:11
method ok great now we have created get
00:03:20
all the employees method alright so this
00:03:22
will basically return a list of
00:03:24
employees to the controller now our
00:03:27
create a spring MVC controller right
00:03:30
click new and create a class let's name
00:03:33
it as my controller
00:03:42
let's annotate this employee controller
00:03:45
with at the rate controller annotation
00:03:49
so what we'll do we create a method
00:03:52
handler which will display this top
00:03:55
employees all right and here I'm just
00:04:00
going to write the comment display list
00:04:09
of employees
00:04:13
all right let's create a metal hanger
00:04:16
public and we need to supply a list of
00:04:19
employees to the Veolia for that we need
00:04:22
to use a model here and let's annotate
00:04:30
this method handler at the rate request
00:04:33
mapping annotation or we can also use at
00:04:36
the rate we'll get mapping annotation
00:04:40
all right
00:04:47
now what we'll do we'll add data to the
00:04:53
model let's use at attribute and method
00:04:57
here add attributes with Q value P right
00:05:02
so here I will give this implies and
00:05:08
here another call so before that we need
00:05:12
to inject service class right let's use
00:05:17
app outward annotation and here just
00:05:20
inject my service
00:05:29
and let's call this employ service here
00:05:33
dot get our employees and here we just
00:05:41
returned the even even that is let's
00:05:44
call that either index
00:05:46
let's call home time lip template as an
00:05:53
index okay so what we have done we have
00:05:57
we know we have written a list of the
00:06:00
employees and we have added to the model
00:06:04
here and we just return the index so
00:06:06
this is the you know time lip template
00:06:09
that we will design right now so look at
00:06:16
here this is the templates folder under
00:06:18
resource directory and we need to create
00:06:22
our time loop templates under templates
00:06:24
folder because spring MVC needs or we've
00:06:28
resolved light in order to resolve the
00:06:30
views whenever spring boat finds a time
00:06:34
lip starter dependency on the class path
00:06:37
then it will automatically configure a
00:06:39
viewer is a lot for time lip template
00:06:42
engine so when you know need to manually
00:06:44
add a wave resolver for time web
00:06:47
template engine and by default spring
00:06:50
boot will pick up time lip templates
00:06:53
from templates folder hence we need to
00:06:56
create time lip templates under
00:06:59
templates folder
00:07:00
alright let's all right click on it new
00:07:02
and then choose a HTML file and here
00:07:07
when you to t1 ma as index so this is
00:07:10
our home page which will display a list
00:07:14
of employees
00:07:21
let's design time lip template so let's
00:07:25
replace title with the employee
00:07:30
management system so project name is a
00:07:33
primary rule system right and here let's
00:07:37
create a deal and let's align this dude
00:07:42
to the center align Center and here we
00:07:50
create h1 tag and here is simply called
00:07:55
as employees list and then we create a
00:08:00
table and we create a table header
00:08:08
alright and this is the table body and
00:08:14
the table header you create a row here
00:08:18
and then here th and let's call it as my
00:08:29
first name
00:08:31
alright so you can start putting witness
00:08:35
for that you will get a hands-on
00:08:36
experience and then let's say my last
00:08:42
name
00:08:44
let's create one more header this is my
00:08:51
email okay and in the body would create
00:08:58
a guy in a room
00:09:05
let me quickly add time lead code here
00:09:16
so look at here we are using time leap
00:09:19
directives here so you are just
00:09:23
iterating over a list of employees so
00:09:26
this list employees we got from the
00:09:28
controller from here okay and here we
00:09:37
just iterate or list implies using you
00:09:41
know time live directive and here we are
00:09:44
using time leap expression to render I
00:09:47
employ first name last name and email
00:09:49
all right this is pretty simple
00:09:51
time loop template for home page to
00:09:55
render list up implies okay oh great now
00:10:00
we have completed end to end you know
00:10:04
least employ feature what else remaining
00:10:09
I think we have done it so what we will
00:10:12
do we will run the application and we
00:10:14
will see the demo so before that what I
00:10:18
will do I will insert some records into
00:10:21
a database okay so first we will run the
00:10:24
spring book project then I burn it will
00:10:26
automatically create an employee table
00:10:28
in a database and then we'll insert our
00:10:31
employee records
00:10:32
okay so in order to run the spring boot
00:10:35
project we go to the main entry point of
00:10:38
our class all right click run as spring
00:10:42
would app or spring would project
00:10:46
so they got here the locks we have
00:10:50
basically computer log levels for
00:10:51
hibernate in application but profit is
00:10:53
fine right
00:10:54
hence there are a lot of blocks are
00:10:57
printing on a console here we got some
00:11:05
we are here oops we forgotten to add
00:11:11
annotation to the service I guess so
00:11:14
here basically we need to add after it
00:11:16
service annotation and also we need to
00:11:20
provide at the transactional rotation so
00:11:25
we can skip this annotation because
00:11:27
spring data API internally will handle
00:11:30
the transactions so we can skip this
00:11:32
annotation now what we'll do we'll run
00:11:37
about spring the project once again
00:11:40
spring boot app no errors in our
00:11:46
application setup now our application is
00:11:49
up and running on embedded tomcat server
00:11:51
on 4800 now let's go to the browser
00:11:54
let's access this Employee List page in
00:12:01
a browser tab just type localhost colon
00:12:04
8080 0 so this will give this will
00:12:09
display the page looks like this
00:12:12
so let's open index dot XML file here
00:12:15
and we just provide a border for our
00:12:18
table border 1 okay and then again
00:12:25
refresh so here are you here you can see
00:12:29
we have just uploaded a border for table
00:12:32
now what we'll do we'll add few recourse
00:12:35
to the employ table in the database go
00:12:38
to the Mexico workbench here refresh it
00:12:41
and you can see in a demo database
00:12:45
employ tables he is created let's insert
00:12:49
few records
00:12:56
let's apply
00:12:58
apply and finish now we have inserted
00:13:02
three records in um employees table so
00:13:06
basically we insert these records by
00:13:08
using add a new employee page that will
00:13:13
implement in further videos okay go to
00:13:17
the web browser again refresh it yeah
00:13:20
here you can see we can able to see
00:13:23
three employees just that we have
00:13:26
inserted in a employees table right in
00:13:29
database remains Zena Tony Stark alright
00:13:32
so this is how we have implemented um to
00:13:37
end the employee list feature now what
00:13:40
we'll do we'll add some bootstrap CSS
00:13:43
and we will style our web page now what
00:13:50
we'll do we'll add a bootstrap CSS to
00:13:53
the our HTML page for that we need to
00:13:57
add a bootstrap CSS library right so
00:14:00
what I will do I will get some new
00:14:02
bootstrap CSS from the CDN site so you
00:14:07
can copy this link you can just search
00:14:11
for CDN bootstrap then you can able to
00:14:14
get this link okay so instead of
00:14:17
downloading and adding to the project I
00:14:19
can use this CDN provided bootstrap CSS
00:14:23
file okay now once we have bootstrap CSS
00:14:29
file we can able to add a classes right
00:14:32
so let's go and let's add some classes
00:14:34
CSS classes to the table here class
00:14:41
and this is a table tables stripped and
00:14:44
table response room okay now let's go to
00:14:48
the browser I am let's refresh again now
00:14:54
you can see some changes happen on our
00:14:57
web page right we have just added a
00:14:59
bootstrap CSS classes so that our table
00:15:04
looks good right so let's go let's add
00:15:07
few more CSS classes and let's make this
00:15:11
web page beautiful what we'll do we'll
00:15:15
add a container here to us container so
00:15:19
this will basically add a new container
00:15:23
now again refresh again you can see here
00:15:28
now our web page looks good right so we
00:15:39
can get this h1 tag here at a pop remove
00:15:46
this align center this is not required
00:15:48
because we have added you know container
00:15:53
here now again let's worry let's refresh
00:15:57
it now our web page looks like
00:15:59
looks good right alright so this is how
00:16:03
we have implemented the end to end list
00:16:06
in five feature the next video we will
00:16:09
see how to implement add new me apply
00:16:12
feature
00:16:13
all right great I will see you in the
00:16:16
next video

Description:

Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2 - we will implement List Employee feature. Get the source code of this tutorial at https://www.javaguides.net/2020/05/spring-boot-thymeleaf-crud-database-real-time-project-part2.html. Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 1 at https://www.youtube.com/watch?v=U7WDfoiodOg 1. Create and Setup Spring Boot Project in Eclipse STS 2. Database Setup Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2 - Implement List Employee Feature at https://www.youtube.com/watch?v=bcV0WtOoY54 Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 3 - Implement Add Employee Feature at https://www.youtube.com/watch?v=dlGmqzex8GE ` Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 4 - Implement Update Employee Feature at https://www.youtube.com/watch?v=iVAZ1bK8YGI Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 5 Implement Delete Employee Feature at https://www.youtube.com/watch?v=gUapbepRa24 Spring boot for beginners playlist at https://www.youtube.com/playlist?list=PLGRDMO4rOGcN21sn_D3F1WOa8O38c_10R

Mediafile available in formats

popular icon
Popular
hd icon
HD video
audio icon
Only sound
total icon
All
* — If the video is playing in a new tab, go to it, then right-click on the video and select "Save video as..."
** — Link intended for online playback in specialized players

Questions about downloading video

mobile menu iconHow can I download "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2" video?mobile menu icon

  • http://unidownloader.com/ website is the best way to download a video or a separate audio track if you want to do without installing programs and extensions.

  • The UDL Helper extension is a convenient button that is seamlessly integrated into YouTube, Instagram and OK.ru sites for fast content download.

  • UDL Client program (for Windows) is the most powerful solution that supports more than 900 websites, social networks and video hosting sites, as well as any video quality that is available in the source.

  • UDL Lite is a really convenient way to access a website from your mobile device. With its help, you can easily download videos directly to your smartphone.

mobile menu iconWhich format of "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2" video should I choose?mobile menu icon

  • The best quality formats are FullHD (1080p), 2K (1440p), 4K (2160p) and 8K (4320p). The higher the resolution of your screen, the higher the video quality should be. However, there are other factors to consider: download speed, amount of free space, and device performance during playback.

mobile menu iconWhy does my computer freeze when loading a "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2" video?mobile menu icon

  • The browser/computer should not freeze completely! If this happens, please report it with a link to the video. Sometimes videos cannot be downloaded directly in a suitable format, so we have added the ability to convert the file to the desired format. In some cases, this process may actively use computer resources.

mobile menu iconHow can I download "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2" video to my phone?mobile menu icon

  • You can download a video to your smartphone using the website or the PWA application UDL Lite. It is also possible to send a download link via QR code using the UDL Helper extension.

mobile menu iconHow can I download an audio track (music) to MP3 "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2"?mobile menu icon

  • The most convenient way is to use the UDL Client program, which supports converting video to MP3 format. In some cases, MP3 can also be downloaded through the UDL Helper extension.

mobile menu iconHow can I save a frame from a video "Spring Boot Thymeleaf CRUD Database Real-Time Project - PART 2"?mobile menu icon

  • This feature is available in the UDL Helper extension. Make sure that "Show the video snapshot button" is checked in the settings. A camera icon should appear in the lower right corner of the player to the left of the "Settings" icon. When you click on it, the current frame from the video will be saved to your computer in JPEG format.

mobile menu iconWhat's the price of all this stuff?mobile menu icon

  • It costs nothing. Our services are absolutely free for all users. There are no PRO subscriptions, no restrictions on the number or maximum length of downloaded videos.

Follow our social media for updates