File tree Expand file tree Collapse file tree 9 files changed +66
-5
lines changed
java/com/itacademy/CrudEmpleats Expand file tree Collapse file tree 9 files changed +66
-5
lines changed Original file line number Diff line number Diff line change 12
12
<artifactId >CrudEmpleats</artifactId >
13
13
<version >0.0.1-SNAPSHOT</version >
14
14
<name >CrudEmpleats</name >
15
- <description >Crud de delegacions </description >
15
+ <description >Crud de Empleats </description >
16
16
<properties >
17
17
<java .version>15</java .version>
18
18
</properties >
19
19
<dependencies >
20
+ <dependency >
21
+ <groupId >org.springframework.boot</groupId >
22
+ <artifactId >spring-boot-starter-thymeleaf</artifactId >
23
+ </dependency >
20
24
<dependency >
21
25
<groupId >org.springframework.boot</groupId >
22
26
<artifactId >spring-boot-starter-web</artifactId >
File renamed without changes.
Original file line number Diff line number Diff line change 1
- package com .itacademy .crudEmpleats .controller ;
1
+ package com .itacademy .CrudEmpleats .controller ;
2
2
3
- public class Controller {
3
+ import org .springframework .stereotype .Controller ;
4
+
5
+ @ Controller
6
+ public class ControllerEmployees {
4
7
5
8
/*
6
9
* Crearem un programa de gestió d'empleats molt senzill on depenent de la feina
Original file line number Diff line number Diff line change 1
- package com .itacademy .crudEmpleats .domain ;
1
+ package com .itacademy .CrudEmpleats .domain ;
2
2
3
3
public enum Jobs {
4
4
Original file line number Diff line number Diff line change 1
- package com .itacademy .crudEmpleats .persistence ;
1
+ package com .itacademy .CrudEmpleats .persistence ;
2
2
3
3
public class EmployeeRepository {
4
4
Original file line number Diff line number Diff line change
1
+ < div >
2
+ < br >
3
+ < h1 > Spring - CRUD de Empleats</ h1 >
4
+ < br >
5
+ </ div >
Original file line number Diff line number Diff line change
1
+
2
+ < head xmlns:th ="http://www.thymeleaf.org ">
3
+
4
+
5
+ < meta charset ="ISO-8859-1 ">
6
+
7
+ < link rel ="stylesheet "
8
+ href ="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css "
9
+ integrity ="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z "
10
+ crossorigin ="anonymous ">
11
+ < script
12
+ src ="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js "
13
+ integrity ="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV "
14
+ crossorigin ="anonymous "> </ script >
15
+ < script
16
+ src ="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js "
17
+ integrity ="sha384-LtrjvnR4Twt/qOuYxE721u19sVFLVSA4hf/rRt6PrZTmiPltdZcI7q7PXQBYTKyf "
18
+ crossorigin ="anonymous "> </ script >
19
+
20
+
21
+ < link rel ="stylesheet " href ="/styles/cloud.css ">
22
+
23
+
24
+ < title > Spring - Crud delegacions</ title >
25
+ </ head >
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html xmlns:th ="http://thymeleaf.org ">
3
+ < head >
4
+ < th:block th:include ="Fragments/head :: head "> </ th:block >
5
+
6
+ </ head >
7
+ < body >
8
+ < div class ="container ">
9
+ < div th:insert ="Fragments/BodyHeader :: div "> </ div >
10
+
11
+
12
+ < label > Introduir un nou empleat:</ label > < br > < br >
13
+
14
+ < form action ="/ " method ="post ">
15
+ Nom: < input type =text name => < br > < br >
16
+ Cognom: < input type =text name =cognom > < br > < br >
17
+
18
+ < input type =submit name ="submit " value ="Nou Empleat ">
19
+
20
+
21
+ </ form >
22
+ </ div >
23
+ </ body >
24
+ </ html >
You can’t perform that action at this time.
0 commit comments