如何在html网页里获取 mav.addObject("message","登录名或密码错误,请重新输入")的message

纠结了好久,网上很多人说用ajax,其实不用这么麻烦,用thymeleaf模板就好


加上这两行,

 xmlns="http://www.w3.org/1999/xhtml"
        xmlns:th=http://www.thymeleaf.org

 
  
 
  
就可以得到了

你可能感兴趣的:(如何在html网页里获取 mav.addObject("message","登录名或密码错误,请重新输入")的message)