调整 mysql 的驱动,换回 5.x 版本。因为 skywalking 暂时不支持 8.x 的驱动的追踪

This commit is contained in:
YunaiV 2019-03-11 00:19:50 +08:00
parent 3ffdc44669
commit 1b8701b0cb
2 changed files with 8 additions and 2 deletions

View File

@ -30,6 +30,12 @@
<artifactId>dubbo</artifactId>
<version>2.6.5</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.47</version>
</dependency>
</dependencies>
</dependencyManagement>

View File

@ -16,14 +16,14 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@RestController("productCategoryController_users")
@RequestMapping("users/product/category")
@RequestMapping("users/category")
@Api("商品分类")
public class UsersProductCategoryController {
@Reference(validation = "true")
private ProductCategoryService productCategoryService;
@GetMapping
@GetMapping("/list")
@ApiOperation("获得指定编号下的子分类的数组")
@ApiImplicitParam(name = "pid", value = "指定分类编号", required = true, example = "0")
public List<UsersProductCategoryVO> list(@RequestParam("pid") Integer pid) {