1.1 环境搭建——pom文件 4.0.0 com.ustc miaosha 1.0 SNAPSHOT miaosha http://www.example.com org.springframework.boot spring boot starter parent 1.5.9.RELEASE U ...
分类:
其他好文 时间:
2019-12-19 14:36:41
阅读次数:
132
第一步: <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-config-client</artifactId> </dependency> 第二步: @EnableCircuitBr ...
分类:
其他好文 时间:
2019-12-19 13:10:53
阅读次数:
81
创建一个SpringBoot项目 一、pom 文件 1、pom 头文件 2、添加 SpringBoot 的父级依赖(控制版本信息) 这样当前的项目就是 Spring Boot 项目了。spring boot starter parent 是一个特殊的 starter,它用来提供相关的 Maven 默 ...
分类:
编程语言 时间:
2019-12-18 23:29:55
阅读次数:
101
import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import java.util.List; import java.util.Map; /** * <!--GSON--> * <!-- https://m ...
分类:
其他好文 时间:
2019-12-17 22:16:25
阅读次数:
121
1.添加插件的依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>5.0.4</version></dependency> <dependency> ...
分类:
其他好文 时间:
2019-12-17 22:03:41
阅读次数:
76
/** * 将gbk编码转为utf8再json化 * @param $value * @param int $options * @return false|string */ static function tb_json_encode($value, $options = 0) { return ...
分类:
Web程序 时间:
2019-12-17 18:38:58
阅读次数:
248
现在有两个项目pet-api和pet-provider,这两个项目都在pet-parent当中,项目结构如下: 现在要在pet-provider中调用pet-api 先在parent中的settings.gradle中声明子模块,代码如下: 然后在api中的build.gradle加入以下配置 so ...
分类:
其他好文 时间:
2019-12-17 13:31:00
阅读次数:
864
单表查询 where 约束条件 having distinct order by limit 正则 多表查询 创建表与插入数据准备 关联查询 子查询 ...
分类:
数据库 时间:
2019-12-17 00:48:22
阅读次数:
104
js中的with: with的语法结构为: with(object) { /* 语句 */ } with主要是用来对对象取值的, 如下 所示: with(obj) { var newa = a; var newb = b; console.log(newa+newb); } 该语句 等价于: var ...
分类:
Web程序 时间:
2019-12-17 00:29:28
阅读次数:
133
微服务之多个服务间调用 现在又一个学生微服务 user 和 学校微服务 school,如果user需要访问school,我们应该怎么做? 1.使用RestTemplate方式 添加config import org.springframework.cloud.client.loadbalancer. ...
分类:
编程语言 时间:
2019-12-16 19:35:30
阅读次数:
284