Browse Source

ya se puede añadir y responder!!!

master
Cristobal Bernal Mayordomo 1 year ago
parent
commit
76a68de8e0
6 changed files with 9 additions and 8 deletions
  1. +2
    -2
      src/main/java/com/cristobalbernal/foro/Entidades/Foro.java
  2. +2
    -2
      src/main/java/com/cristobalbernal/foro/Entidades/UsersEntity.java
  3. +1
    -1
      src/main/resources/application.properties
  4. +2
    -1
      src/main/resources/static/css/style.css
  5. +1
    -1
      src/main/resources/templates/index.html
  6. +1
    -1
      src/main/resources/templates/miperfil/miperfil.html

+ 2
- 2
src/main/java/com/cristobalbernal/foro/Entidades/Foro.java View File

@ -15,7 +15,7 @@ public class Foro {
@Column(name = "titulo", nullable = true, length = 150)
private String titulo;
@Basic
@Column(name = "descripcion", nullable = true, length = 150)
@Column(name = "descripcion", nullable = true, length = 500)
private String descripcion;
@Version
@Basic
@ -25,7 +25,7 @@ public class Foro {
@Column(name = "imagen", nullable = false)
private int imagen;
@Basic
@Column(name = "categoria_foro_id", nullable = false)
@Column(name = "categoria_foro_id", nullable = true)
private int categoriaForoId;
public Foro() {


+ 2
- 2
src/main/java/com/cristobalbernal/foro/Entidades/UsersEntity.java View File

@ -19,13 +19,13 @@ public class UsersEntity {
@Column(name = "secondname", nullable = true, length = 45)
private String secondname;
@Basic
@Column(name = "password", nullable = true, length = 45)
@Column(name = "password", nullable = true, length = 120)
private String password;
@Basic
@Column(name = "email", nullable = true, length = 45)
private String email;
@Basic
@Column(name = "username", nullable = true, length = 45)
@Column(name = "username", nullable = true, length = 120)
private String username;
@Basic
@Column(name = "Imgen", nullable = true, length = 150)


+ 1
- 1
src/main/resources/application.properties View File

@ -2,7 +2,7 @@ server.port=9000
spring.thymeleaf.cache=false
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mariadb://localhost:3306/foro
spring.datasource.url=jdbc:mariadb://localhost:3306/forogruas
spring.datasource.username=root
spring.datasource.password=
spring.jpa.properties.hibernate.jdbc.time_zone=UTC


+ 2
- 1
src/main/resources/static/css/style.css View File

@ -2343,7 +2343,7 @@ button:active {
border-radius: 50%;
}
.user-name{
font-size: 18pt;
font-size: 20pt;
margin-top: 14px;
}
.socials{
@ -2358,6 +2358,7 @@ button:active {
.colorCorreo{
text-decoration: none;
color: #ad0000;
font-size: 14pt;
}
a:hover{
color: #dd1919;


+ 1
- 1
src/main/resources/templates/index.html View File

@ -66,7 +66,7 @@
<!--strart col-md-3 (side bar)-->
</section>
<!-- Podemos añadir el usuario-->
</div>
</div>
<aside class="col-md-3 sidebar97239">


+ 1
- 1
src/main/resources/templates/miperfil/miperfil.html View File

@ -8,7 +8,7 @@
</div>
<ul class="socials">
<li>
<a class="colorCorreo" href="mailto:[email protected]">[email protected]</a>
<a class="colorCorreo" th:text="${nombre.getEmail()}"></a>
</li>
</ul>
<form th:action="@{/logout}" method="post" class="cerrarSesion">


Loading…
Cancel
Save