-
Notifications
You must be signed in to change notification settings - Fork 7
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
https://dimitri.codes/bundling-react-spring-boot/ #132
Comments
Hello. Nice and informative article. Error creating bean with name 'viewControllerHandlerMapping' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.web.util.pattern.PatternParseException: No more pattern data allowed after {...} or ** pattern element |
@pyofori That's true, this approach no longer works in the newest Spring Boot versions. Nowadays I usually write a custom filter in my backend. For example NotFoundIndexFilter. What this filter does is that each time a webpage is requested that is not containing our API-path, it's returning the index-page. The method I use for detecting if a webpage is requested is by checking if the I'm updating the tutorial right now with new information because nowadays I also prefer putting the frontend-resources in its own JAR and including that JAR as a dependency in my backend-project. |
Thanks a lot. This is very helpful.
…On Thu, 10 Nov 2022 at 08:12, Dimitri ***@***.***> wrote:
@pyofori <https://github.com/pyofori> That's true, this approach no
longer works in the newest Spring Boot versions. Nowadays I usually write a
custom filter in my backend. For example NotFoundIndexFilter
<https://github.com/g00glen00b/medication-assistant/blob/master/application/src/main/java/be/g00glen00b/apps/mediminder/NotFoundIndexFilter.java>.
What this filter does is that each time a webpage is requested that is not
containing our API-path, it's returning the index-page. The method I use
for detecting if a webpage is requested is by checking if the Accept
header contains text/html.
I'm updating the tutorial right now with new information because nowadays
I also prefer putting the frontend-resources in its own JAR and including
that JAR as a dependency in my backend-project.
—
Reply to this email directly, view it on GitHub
<#132 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGB4SKVAEK4ICZYXYUJYPMTWHSU7LANCNFSM6AAAAAAR3SDZ5E>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Bundling your React app with Spring boot | Dimitri's tutorials
In this tutorial I'll show you how you can bundle your React app together with Spring boot.
https://dimitri.codes/bundling-react-spring-boot/
The text was updated successfully, but these errors were encountered: