首页 > 其他分享 >QQZone3 - 登录问题汇总

QQZone3 - 登录问题汇总

时间:2023-01-26 17:33:40浏览次数:25  
标签:rsmd 登录 super 汇总 page UserBasic Integer QQZone3 id

login 出现的错误

  • URL没修改,用的还是fruitdb

  • rsmd.getColumnName() 和 rsmd.getColumnLabel()

    • SELECT fid AS id FROM ...
      
    • .getColumnName() -> fid

    • getColumnLabel() -> id

  • Can not set com.atguigu.qqzone.pojo.UserBasic field com.atguigu.qqzone.pojo.Topic.author to java.lang.Integer

    • Integer 不能作为 UserBasic 对象进行传参
    • 调用 UserBasic 中有一个参数 Integer id 的构造方法,将 id 封装成 UserBasic 对象
  • left.html页面没有样式,同时数据也不展示,原因是:我们是直接去请求的静态页面资源,那么并没有执行super.processTemplate(),也就是thymeleaf没有起作用
    (之前的表单也是这个原因)
    解决方法:

    • 新增PageController,添加page方法:
      public String page(String page){
      return page ; // frames/left
      }
      目的是执行super.processTemplate()方法,让thymeleaf生效

标签:rsmd,登录,super,汇总,page,UserBasic,Integer,QQZone3,id
From: https://www.cnblogs.com/Ashen-/p/17067969.html

相关文章