上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 方法一:三目运算符 <input type="text" th:value="${userInfo!=null ?userInfo.phone:''}"> 方法二:*{ xx },后台数据要设置为内置对象 <input type="text" class="form-control" th:valu 阅读全文
posted @ 2020-03-27 17:25 9529 阅读(4339) 评论(1) 推荐(0)
摘要: mapper: @Mapper public interface StudentMapper { @Select("select * from student where id=#{id}") Student getById(Integer id); @Update("UPDATE student 阅读全文
posted @ 2020-03-11 09:28 9529 阅读(57) 评论(0) 推荐(0)
摘要: 起因:之前申请七牛云给的测试域名过期了,然后安装官方教程进行了域名绑定。 这里我用的是一级域名: 先是创建加速域名,比如你有一个一级域名: abc.com 然后复制cname的值到阿里云 域名-》解析 添加记录- 记录类型选:CNAME 主机记录填 @ 记录值:填七牛云给的 cname 其他默认就可 阅读全文
posted @ 2020-03-09 14:40 9529 阅读(130) 评论(0) 推荐(0)
摘要: 1.两个字段,标志字段istop,置顶的时间toptime 2.查询排序,按照 istop desc,toptime desc ,创建时间 desc 个人毕设有用到。记录下。 阅读全文
posted @ 2020-02-26 23:45 9529 阅读(244) 评论(0) 推荐(1)
摘要: 起初百度看了很多都没有自己需要的,所以最后去翻文档找到了,原来这么简单。。。 话不多说,上代码 官网是这么说的 设置内容 以下方式中,如果条件允许,尽量使用第一种方式,效率最高。 html 初始化内容 直接将内容写到要创建编辑器的<div>标签中 <div id="div1"> <p>初始化的内容< 阅读全文
posted @ 2020-02-26 14:16 9529 阅读(881) 评论(0) 推荐(0)
摘要: 直接上代码 示例: <select class="form-control js_select2" name="companyid" id="example-select"> <option value>请选择</option> <option value="1" th:each="company 阅读全文
posted @ 2020-02-18 12:36 9529 阅读(854) 评论(0) 推荐(0)
摘要: 在拦截资源配置类下加如下代码: //iframe http.headers().frameOptions().disable(); 阅读全文
posted @ 2020-02-17 16:25 9529 阅读(330) 评论(0) 推荐(0)
摘要: 最近使用了wangeditor编辑器,保存数据到了数据库,都是HTML代码。 为了从数据库解析处理,几经周折,查了很多资料。 最初是这样写,但显示的都是字符串,没有解析到 <p th:text="${}"><p> 后面查了资料,又这样写, <div>[ [ $ { } ] ]<div>,还是不行 终 阅读全文
posted @ 2020-02-08 13:28 9529 阅读(593) 评论(0) 推荐(0)
摘要: ajax上传图片的时候,苦于刷新与ajax的file处理问题,然后几经周折,发现个神器,达到了自己想要的结果 丢下链接,用起来很简单 https://github.com/LPology/Simple-Ajax-Uploader 阅读全文
posted @ 2020-02-06 18:02 9529 阅读(141) 评论(0) 推荐(0)
摘要: 效果图: 数据库设计 实体类: @Data @EqualsAndHashCode(callSuper = false) public class Comment implements Serializable { private static final long serialVersionUID 阅读全文
posted @ 2020-02-02 16:40 9529 阅读(142) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页