该文被密码保护。 阅读全文
posted @ 2020-03-25 23:34 1192371135 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 最近在做一个项目,前后端分离,不可避免的遇到了跨域问题。起初是配置跨域: @Configurationpublic class CorsConfig extends WebMvcConfigurerAdapter { private CorsConfiguration buildConfig() { 阅读全文
posted @ 2020-03-04 12:05 1192371135 阅读(1533) 评论(0) 推荐(0) 编辑
摘要: @Componentpublic class ParamConfig { private static String factoryUrl; public static String getFactoryUrl() { return factoryUrl; } @Value("${external. 阅读全文
posted @ 2020-01-15 10:32 1192371135 阅读(881) 评论(0) 推荐(0) 编辑
摘要: @Configurationpublic class RestTemplateConfig { //启动时需要实例化该类的一个实例 @Autowired private RestTemplateBuilder builder; //使用RestTemplateBuilder来实例化RestTempl 阅读全文
posted @ 2020-01-15 10:29 1192371135 阅读(3466) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(364) 评论(0) 推荐(0) 编辑
摘要: mapper-locations: "classpath*:mybatis/mappers/**/*Mapper.xml" 阅读全文
posted @ 2019-12-19 16:10 1192371135 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(5020) 评论(0) 推荐(0) 编辑
摘要: 在application.properties中如做下调用: ## Mybatis mybatis.config-location=classpath:mybatis/mybatis-config.xmlmybatis.mapper-locations=classpath:mybatis/mappe 阅读全文
posted @ 2019-12-19 16:04 1192371135 阅读(5011) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(939) 评论(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 阅读(2760) 评论(0) 推荐(0) 编辑