Update Spring to v3.3.0 and Thymeleaf. Update deprecated code#6
Open
santiest wants to merge 1 commit into
Open
Update Spring to v3.3.0 and Thymeleaf. Update deprecated code#6santiest wants to merge 1 commit into
santiest wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Estas modificaciones fueron realizadas por mi, y por mi compañero Dani @espiridifen.
Este código actualiza Spring (junto a Spring Security) y Thymeleaf a sus versiones más recientes. Se han realizado la menor cantidad de cambios posibles, a su vez manteniendo exactamente la misma funcionalidad.
En muchos de los archivos, el único cambio es de javax a jakarta (nuevo paquete que lo reemplaza).
Respecto a Spring Security, se ha modificado tanto el archivo de SecurityConfig como el de WebSocketSecurityConfig. Los cambios en este último son bastante sencillos y no requieren demasiada explicación.
En SecurityConfig sí hay más cambios, ya que ahora se utiliza la SecurityFilterChain (como su nombre indica, una cadena de filtros), y cambian los tipos como las funciones utilizadas, pero se mantiene la misma funcionalidad.
Respecto a Thymeleaf, en su última versión ya no se puede acceder a #request, y nos obligan a agregar los atributos al modelo directamente. Por eso los cambios en los archivos HTML y en el RootController.