fmarchioni / masterspringboot Goto Github PK
View Code? Open in Web Editor NEWSource code for www.masterspringboot.com
Source code for www.masterspringboot.com
Firstly thank you for all your efforts. I checked out your project from your blog "Securing Spring Boot application with Keycloak"
My Keycloak setup is a little different in that it is on another server. However I have configured everything exactly as you have explained. BTW I am also using Java 14, Spring Boot 2.5.0 and Keycloak 13.0.0
When I run the project unchanged and click on the Customer List link on the index page I get the following error:
javax.servlet.ServletException: Circular view path [customers]: would dispatch back to the current handler URL [/customers] again. Check your ViewResolver setup! (Hint: This may be the result of an unspecified view, due to default view name generation.)
So I change the following in the controller:
@GetMapping(path = "/listCustomers")
public String getCustomers(Model model){
model.addAttribute("customers", Arrays.asList("John Smith","Uncle Tom","Fred Flinstone"));
return "customers";
}
I also change the index.html:
<a href="/listCustomers">Customer List</a>
and the application.properties:
keycloak.security-constraints[0].securityCollections[0].patterns[0]=/listCustomers/*
However now I after I successfully login I get a Whitelabel Error Page when I actually expect to see the list of clustomers. There are no errors or logs that I can see.
What have I missed?
Hey, I've found your tutorials very interisting and I would like to suggest an example of creating docker images for spring boot applications directly on pom.xml.
In case you want any contributions, I could definetely implement this.
Thanks for your efforts!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.