上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页
摘要: <if test="isChoiceness != null and isChoiceness != -1"> AND sa.is_choiceness = #{isChoiceness}</if> isChoiceness 是一个Integer 类型的值,所以只能判断是否是null 和是否是 数字 阅读全文
posted @ 2019-05-28 11:17 Sea_wxx 阅读(446) 评论(0) 推荐(0)
摘要: 最近使用springboot打包上传的时候遇到一个问题,就是访问与jar同级别的文件,之前使用最多的是war形式,所以很好设置静态资源路径。 但是jar是看不到里面的文件夹的,所以把文件上传到与jar同级别的upload下,这样就需要在项目中设置upload也应该是静态资源。 关键代码 设置好之后, 阅读全文
posted @ 2019-05-28 09:26 Sea_wxx 阅读(2591) 评论(0) 推荐(0)
摘要: 使用的是阿里云免费DV证书,单个域名 1.下载ssl审核通过的证书 使用nginx版本 2.nginx 文件配置 和 证书存放 server { listen 80; listen [::]:80; listen 443 ssl; ssl_certificate cert/3919775_video 阅读全文
posted @ 2019-04-16 14:27 Sea_wxx 阅读(315) 评论(0) 推荐(0)
摘要: 发送邮件代码 //遇到的问题 该问题就是在国内无法连接,要使用国外的服务器 使用国外的服务器之后,还会报错 javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted 就要进行下图的设置 阅读全文
posted @ 2019-03-19 12:00 Sea_wxx 阅读(693) 评论(0) 推荐(0)
摘要: 通用mapper 动态更新(updateByPrimaryKeySelective) 判断条件 是否为null 如果值是空 "" 则会更新为空 阅读全文
posted @ 2019-03-18 17:36 Sea_wxx 阅读(2303) 评论(0) 推荐(0)
摘要: 做了一个订单表 order 执行新增的时候报错 ### SQL: INSERT INTO order ( id,order_no,email,bd_id,payment,postage,status,create_time ) VALUES( ?,?,?,?,?,?,?,? )### Cause: 阅读全文
posted @ 2019-03-11 10:58 Sea_wxx 阅读(757) 评论(0) 推荐(0)
摘要: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMa 阅读全文
posted @ 2019-03-01 09:05 Sea_wxx 阅读(1937) 评论(0) 推荐(0)
摘要: 后台通过对象接收前端传过来的时间类型的值时,需要使用@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 注解将前端传过来的值转换成时间类型的 阅读全文
posted @ 2019-02-27 11:41 Sea_wxx 阅读(7865) 评论(0) 推荐(1)
摘要: // .::::. // .::::::::. // ::::::::::: // ..:::::::::::' // '::::::::::::' // .:::::::::: //... 阅读全文
posted @ 2019-01-28 11:25 Sea_wxx 阅读(272) 评论(0) 推荐(0)
摘要: 安装zip格式的mysql 去官网下载想要安装的zip格式的文件(下载地址 https://dev.mysql.com/downloads) 下载完就解压到自己想要的目录下,然后配置环境 MYSQL_HOME 变量名 变量值 就是安装的目录的路径 C:\mysql-5.6.42-winx64 加入到 阅读全文
posted @ 2019-01-22 15:31 Sea_wxx 阅读(987) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页