-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
upgraded Spring Boot from 2.3.0_Release to 3.0.1 and Java from 11 to 17 #25
Open
PierreSQS
wants to merge
19
commits into
springframeworkguru:db-test-context
Choose a base branch
from
PierreSQS:db-test-context-revisit-sb3.0.1-INT
base: db-test-context
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
upgraded Spring Boot from 2.3.0_Release to 3.0.1 and Java from 11 to 17 #25
PierreSQS
wants to merge
19
commits into
springframeworkguru:db-test-context
from
PierreSQS:db-test-context-revisit-sb3.0.1-INT
Conversation
This file contains 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
…ser Entity because of H2 2.1.214-NOK
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.
Dear John,
I've upgraded the code about your nice course on Spring Security (please follow the link).
Following the changes in case you're interested in:
upgraded SB to 3.0.1
upgraded Java to 17
upgraded the MapStruct to 1.5.3_Final
upgraded Lombok to the official SB3.0.1 Version
adapted the POM accordingly
the Security Config has drastically changed since as per SB3.0.0 the WebSecurityConfigurerAdapter has been deprecated an they encourage a Bean Model in the Security Filter Chain!
the Hibernate Packages have been migrated to
jakarta.persistence.*
In the H2 embedded DB, User is a reserved word (as per H2.2.214). I've added an
@Table
- annotation on the User-Entity to make it work. (See the User Entity).The Hibernate @Type-Annotation has changed. Therefore I've removed the
@Type(type="org.hibernate.type.UUIDCharType")
annotation since doesn't work and no more neededAs per SB 2.4.2 and Thymeleaf 3.0.12 static call in the Thymeleaf-Templates has been restricted (Please check the createBeer.html and createOrUpdateBeer.html templates)
I didn't updated the Webjars dependencies and Co.
I've done some optimizations in the code:
.antMatchers("/h2-console/**").permitAll()
I've replaced it with.requestMatchers(PathRequest.toH2Console()).permitAll()
You can see the changes in more details on this branch in my Repo. I've added some comments with Pics on some commits.
I hope you could appreciate it.
Many thanks for your so cool courses