Skip to content

Appended trailing slash to static resource location #34287

@sparkforreg

Description

@sparkforreg

I have simple spring boot web application with index.html in the folder src/main/resources/public. After migration from 3.3.4 to 3.4.1 version I can't open the application in browser. It shows me "{"type":"about:blank","title":"Not Found","status":404,"detail":"No static resource /index.html.","instance":"/index.html"}". In a log file I see a message "ResourceHandlerUtils : Appended trailing slash to static resource location: classpath:/public/index.html/". I tried removing '/' at the end of '/public/index.html/' in debug mode and it helped. So I think the problem appeared after adding "location = ResourceHandlerUtils.initLocationPath(location);" code in the ResourceHttpRequestHandler.java class

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: stackoverflowA question that's better suited to stackoverflow.comstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions