Spring boot css fails after the controller layer jumps to the page

After checking a lot of Baidu, I was pissed off.
In the end, my solution is to write the path like this:
add that at the front/! ! ! Add them all, don't miss them, go try them out

<link rel="stylesheet" href="/assets/bower_components/morris.js/morris.css">

Guess you like

Origin blog.csdn.net/qq_41544842/article/details/113645457