- 博客(10)
- 收藏
- 关注
转载 Java Mail:Session、Message详解
Session Session用于收集JavaMail运行过程中的环境信息,它可以创建一个单例的对象,也可以每次创建新的对象,Session没有构造器,只能通过如下方法创造实例:static SessiongetDefaultInstance(Properties props) Get the default Session object.static Session...
2018-06-28 15:11:03 1761
原创 发送邮件报错javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
关于使用javaMail发送邮件报错:javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed; 从报错的表面意思来看:是不支持数据类型:没有复合邮件对象的专用信息渠道(MIME type multipart/mixed),因为我发送的是复合邮件,邮件里面带附件,带插图,带超...
2018-06-28 11:08:30 3752
原创 spring cloud 微服务框架搭建(二) 搭建服务提供者
服务提供者的搭建和搭建服务注册中心类似在创建好项目后:bootstrap.yml的配置如下eureka: client: serviceUrl: defaultZone: http://localhost:8088/eureka/server: port: 8089spring: application: name: service-servereu...
2018-06-20 18:09:15 288
原创 spring cloud 微服务框架搭建(一) 服务注册中心Eureka
本人搭建spring cloud 框架,开发工具使用idea简介Spring Cloud Eureka是Spring Cloud Netflix项目下的服务治理模块。而Spring Cloud Netflix项目是Spring Cloud的子项目之一,主要内容是对Netflix公司一系列开源产品的包装,它为Spring Boot应用提供了自配置的Netflix OSS整合。通过一些简单的注解,开发...
2018-06-20 17:39:32 357
原创 SQL 中iIfnull函数的使用
"select itemno,cname,ename,shortname,IntervalCheckSend,isnull(IntervalInvalid,0)+isnull(IntervalCheck,0) from testItem WHERE 1=1 ";
2018-06-19 21:39:55 4477
原创 Mybatis传多个参数的问题 及MyBatis报错 Parameter '0' not found. Available parameters are [arg1, arg0, param1 问题
对于使用Mybatis ,传多个参数,我们可以使用对象封装外,还可以直接传递参数对象的封装,例如查询对象条件basequery对象<select id="getProductByProductQuery" parameterType="com.niulande.product.query.BaseQuery" resultMap="BaseResultMap"> select...
2018-06-16 14:45:28 7477 2
原创 mybatis 添加数据后返回主键的两种写法
第一种:加上 useGeneratedKeys="true" keyProperty="id"<insert id="insertAndGetId" useGeneratedKeys="true" keyProperty="id" parameterType="com.chenzhou.mybatis.User"> insert into user(u
2018-06-13 10:35:45 1871
原创 添加数据的时候 报错MySQLIntegrityConstraintViolationException: Duplicate entry '79' for key 'PRIMARY'
关于在操作数据库的时候,添加数据 报错MySQLIntegrityConstraintViolationException: Duplicate entry '79' for key 'PRIMARY'这里的意思是:MySQLIntegrityConstraintViolationException: key 'PRIMARY'重复条目'79',主键重复了,我这里的注解是(id)重复主键id是79...
2018-06-13 10:28:59 14651 1
原创 gitlab 常用命令
1.创建本地分支git branch 分支名,例如:git branch 2.0.1.20120806注:2.0.1.20120806是分支名称,可以随便定义。2.创建远程分支远程分支就是本地分支push到服务器上。比如master就是一个最典型的远程分支(默认)。git push --set-upstream origin (分支名)3.切换本地分支git...
2018-06-13 10:12:52 5237 1
原创 springCloud junit 单元测试
import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springfra...
2018-06-11 23:42:26 19835 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人