spring
迷了璐的航
个人开发数年,可以自行解决工作难题,闲暇时间自学一些新技术
展开
-
Mybatis的jdbc参数设置
修改配置文件spring.datasource.url=jdbc:mysql://1.2.3.4:3306/user?参数1=值1&参数2=值2UsePerformanceMonitor,userperfmon, perfmon:是否启用性能监视,默认 falseMinimumPoolSize, min pool size:线程池中允许的最少线程数,默认 0MaximumPoolSize,max pool size:线程池中允许的最多线程数,默认 100Keepalive: 保持.原创 2021-10-08 16:33:09 · 432 阅读 · 0 评论 -
Maven镜像仓库替换为阿里云镜像仓库
在本地 maven 的 setting配置文件中加上阿里云镜像地址就可以<!-- 阿里镜像仓库 --> <mirrors> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url> http://maven.aliyun.com/nexus/content/grou.原创 2021-10-08 12:26:02 · 726 阅读 · 0 评论 -
springBoot后台发送内容至邮箱
发送邮箱第一步需要去申请一个邮箱,我这里用了网易云邮箱邮箱必须开启服务添加配置email: host: smtp.163.com port: 25 username: ***@163.com password: ****** timeout: 25000添加配置类package com.hbyh.bam.test;import org.springframe...原创 2019-10-25 17:29:43 · 392 阅读 · 0 评论 -
spring获取bean工具类
package utils;import org.springframework.beans.BeansException;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;import org.springfra...原创 2019-09-25 15:47:08 · 134 阅读 · 0 评论