会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
liangmingming
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2020年3月25日
构建RestTemplate
该文被密码保护。
阅读全文
posted @ 2020-03-25 23:34 1192371135
阅读(0)
评论(0)
推荐(0)
2020年3月4日
前后端分离下spring security 跨域问题等
摘要: 最近在做一个项目,前后端分离,不可避免的遇到了跨域问题。起初是配置跨域: @Configurationpublic class CorsConfig extends WebMvcConfigurerAdapter { private CorsConfiguration buildConfig() {
阅读全文
posted @ 2020-03-04 12:05 1192371135
阅读(1551)
评论(0)
推荐(0)
2020年1月15日
@Value映射到静态属性
摘要: @Componentpublic class ParamConfig { private static String factoryUrl; public static String getFactoryUrl() { return factoryUrl; } @Value("${external.
阅读全文
posted @ 2020-01-15 10:32 1192371135
阅读(906)
评论(0)
推荐(0)
使用RestTemplateBuilder来实例化RestTemplate对象
摘要: @Configurationpublic class RestTemplateConfig { //启动时需要实例化该类的一个实例 @Autowired private RestTemplateBuilder builder; //使用RestTemplateBuilder来实例化RestTempl
阅读全文
posted @ 2020-01-15 10:29 1192371135
阅读(3478)
评论(0)
推荐(0)
2020年1月3日
数组转String
摘要: List<String> list = Lists.newArrayList();list.add("测试1");list.add("测试2");list.add("测试3");System.out.println(list.toString());String join = String.join
阅读全文
posted @ 2020-01-03 15:11 1192371135
阅读(369)
评论(0)
推荐(0)
2019年12月19日
Springboot中mybatis配置
摘要: mapper-locations: "classpath*:mybatis/mappers/**/*Mapper.xml"
阅读全文
posted @ 2019-12-19 16:10 1192371135
阅读(366)
评论(0)
推荐(0)
pagehelper配置 多数据源自动切换数据库方言 mysql/sqlserver/oracle等数据库
摘要: 1 加入依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.1.10</version> </dependency>2、配置分页插件 impor
阅读全文
posted @ 2019-12-19 16:07 1192371135
阅读(5336)
评论(0)
推荐(0)
SpringBoot调用mybatis-config.xml的方法
摘要: 在application.properties中如做下调用: ## Mybatis mybatis.config-location=classpath:mybatis/mybatis-config.xmlmybatis.mapper-locations=classpath:mybatis/mappe
阅读全文
posted @ 2019-12-19 16:04 1192371135
阅读(5040)
评论(0)
推荐(0)
2019年12月12日
单元测试中模拟mvc测试对象MockMvc
摘要: import com.hengyu.chapter39.service.impl.MongoDBServiceImpl; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import o
阅读全文
posted @ 2019-12-12 13:46 1192371135
阅读(944)
评论(0)
推荐(0)
获取请求体中图片的二进制流直接解析成图片
摘要: //对path进行urlEncode path = UrlEncodeDecodeUtil.urlEnode(path); String url = "https://api.weixin.qq.com/wxa/get_qrcode?access_token={access_token}&path=
阅读全文
posted @ 2019-12-12 10:47 1192371135
阅读(2797)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告