2020年3月11日
摘要: 用JavaMail实现邮件发送: mail.config.properties(配置信息): mail.transport.protocol=smtp #选择协议 mail.smtp.host=smtp.qq.com #使用qq邮箱 mail.smtp.port= 587 mail.smtp.aut 阅读全文
posted @ 2020-03-11 20:19 LeoRiver 阅读(141) 评论(0) 推荐(0)
  2020年3月10日
摘要: Spring整合Hibernate事务时要注意: 包扫描中配置:use-default-filters="false",防止重复扫描 hibernate.current_session_context_class配置为:org.springframework.orm.hibernate5.Sprin 阅读全文
posted @ 2020-03-10 16:31 LeoRiver 阅读(152) 评论(0) 推荐(0)
摘要: 使用Maven构建项目,用pom.xml引入相应jar,配置以下文件 创建spring.xml: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" x 阅读全文
posted @ 2020-03-10 13:06 LeoRiver 阅读(265) 评论(0) 推荐(0)