title: Thymeleaf: can't load js and css when direct access the page
body: <p><strong>Updated: to describe the question more clearly</strong></p>
  
  <p>I create a web applicaiton with <code>spring boot</code> and <code>thymeleaf</code>, everything works fine if I open the login page, then login, then head for the management module or reports module sequently. </p>
  
  <p>The proleam occurs when I type the url <code>locahost:8080/send/kf/index</code>(needs to authenticate, but I have open access to all in customized filter) in the browser, the page loads without js and css. In debug mode, I saw <code>/send/kf</code> was unexpectly put into the path like the following. I can get the resource if I access <code>localhost:8080/assets/avatars/avatar.png</code>. </p>
  
  <p><a href="https://i.stack.imgur.com/fucqP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fucqP.jpg" alt="enter image description here"></a></p>
  
  <p>The following is the folder structure I put my static resources. How could <code>/send/kf</code> automatically added into the url, please help me solve this problem. Thanks!
  <a href="https://i.stack.imgur.com/OmnNe.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OmnNe.jpg" alt="enter image description here"></a></p>