[Spring-boot] spring-boot when combined thymleaf template, jump to a page does not come out of the css parsing errors

See error:

1. The current page:

Some pages feature:

When I click on pause, will submit a form to form spring-boot background processing, and then return to this page after processing, we can see that there is no css

Look at our request form submission form, as follows:

/algo/1/stop?pid=${pid}

Process requests submitted to the controler is a multi-level directory, in this case, it seems that there will be parsing css error situation, so I want to solve this problem, as long as the form requesting an address into the form of single-level directory structure on it a. Read as follows:

/stop?pid=${pid}

Doing so can the effect is as follows:

 

Guess you like

Origin www.cnblogs.com/jums/p/11368938.html