diff --git a/src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java b/src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java
index d4ef659..cceab21 100644
--- a/src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java
+++ b/src/main/java/es/fp/edu/conecta2/controladores/WebControlador.java
@@ -14,12 +14,28 @@ import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class WebControlador {
+
+ @Autowired
+ private UserService servicioUser;
@GetMapping ("/")
- public String inicio() {
+ public String listarUser(Model modelo){
+ modelo.addAttribute("user",servicioUser.listarUser());
+ return "usuarios";
+ }
+
+ @GetMapping ("/nuevo")
+ public String nuevoUser(Model modelo){
+ modelo.addAttribute("user",servicioUser.listarUser());
+ return "usuarios";
+ }
- return "inicio";
+ @GetMapping ("/borrar")
+ public String borrarUser(Model modelo){
+ modelo.addAttribute("user",servicioUser.listarUser());
+ return "usuarios";
}
+
@RequestMapping("parametros/{a}/{b}/{c}")
public String parametros( @PathVariable int a,
@PathVariable int b,
@@ -54,12 +70,5 @@ public class WebControlador {
return "opcionales";
}
- @Autowired
- private UserService servicioUser;
- @GetMapping ("/user")
- public String listarUser(Model modelo){
- modelo.addAttribute("user",servicioUser.listarUser());
- return "usuarios";
- }
}
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index ac9caa7..357fb73 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -16,6 +16,7 @@ persistente.jpa.show-sql=true
persistente.jpa.hibernate.ddl-auto=update
persistente.jpa.properties.hibernate.dialect=org.hibernate.dialect.MariaDBDialect
+
#persistente.jpa.hibernate.naming.implicit-strategy=org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyHbmImpl
#persistente.jpa.hibernate.naming.physical-strategy=org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
diff --git a/src/main/resources/data.sql b/src/main/resources/data.sql
index 537b40f..a10c038 100644
--- a/src/main/resources/data.sql
+++ b/src/main/resources/data.sql
@@ -1 +1 @@
-insert into bolsa.tbl_user values (1,"Juan"), (2,"Perico"), (3,"Andrés");
+insert into bolsa.tbl_user values (10,"Juan"), (11,"Perico"), (12,"Andrés");
diff --git a/src/main/resources/static/css/footer.css b/src/main/resources/static/css/footer.css
new file mode 100644
index 0000000..da96ae6
--- /dev/null
+++ b/src/main/resources/static/css/footer.css
@@ -0,0 +1,9 @@
+/* Custom page CSS
+-------------------------------------------------- */
+/* Not required for template or sticky footer method. */
+
+.container {
+ width: auto;
+ max-width: 680px;
+ padding: 0 15px;
+}
\ No newline at end of file
diff --git a/src/main/resources/templates/foot/javascript.html b/src/main/resources/templates/foot/javascript.html
index a8513ef..a47794b 100644
--- a/src/main/resources/templates/foot/javascript.html
+++ b/src/main/resources/templates/foot/javascript.html
@@ -1,6 +1,8 @@
-
- Pie de página
+
-
diff --git a/src/main/resources/templates/head/head.html b/src/main/resources/templates/head/head.html
index 00f4ea4..4443d4a 100644
--- a/src/main/resources/templates/head/head.html
+++ b/src/main/resources/templates/head/head.html
@@ -7,13 +7,3 @@
-
-
-
-
-
- Título de la página
-
-
-
-
\ No newline at end of file
diff --git a/src/main/resources/templates/menu/m1.html b/src/main/resources/templates/menu/m1.html
new file mode 100644
index 0000000..6768710
--- /dev/null
+++ b/src/main/resources/templates/menu/m1.html
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/main/resources/templates/usuarios.html b/src/main/resources/templates/usuarios.html
index 6498973..a198dca 100644
--- a/src/main/resources/templates/usuarios.html
+++ b/src/main/resources/templates/usuarios.html
@@ -4,9 +4,41 @@
xmlns:th="http://www.thymeleaf.org">
-
-Listado de usuarios.
+
+
+
+
+
+
+
+
+
+ #idUsuario |
+ nombres |
+ Operaciones |
+
+
+
+ 1 |
+ Mark |
+ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file