Spring Thymeleaf 文档


1.引入CSS


2.引入JS


3.放行资源文件

@Override

public void init(WebSecurity web) throws Exception {

	web.ignoring().antMatchers("/plugins/**");

	web.ignoring().antMatchers("/css/**");

	web.ignoring().antMatchers("/js/**");

	web.ignoring().antMatchers("/img/**");

	super.init(web);

}

4.表单的Action这样写

5.片段

代码片断放在/src/main/resources/templates/fragments目录下

写代码片断







    

    Title







    The awesome application

    

  	

  	

  	

  	

  	

    














Insert title here





	

引用片断



添加Hello


...