Yunfei Du 2024-03-28 16:21:14 +08:00
parent 7b38972c73
commit d05ceebba0
13 changed files with 28 additions and 22 deletions

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -26,6 +26,7 @@ public abstract class CacheAbs<K, V> implements Cache<K, V> {
return keyPre() + key;
}
/**
* Keyvalue
* @param key

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置
@ -33,7 +33,7 @@ spring:
datasource:
ds1:
nacos:
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
dataId: sentinel-muyu-gateway
groupId: DEFAULT_GROUP
data-type: json

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -51,6 +51,9 @@ public class ProjectInfoCache extends CacheAbs<Long, ProjectInfo> {
return projectInfoData.getData(key);
}
/**
*
*/

View File

@ -15,4 +15,6 @@ public interface ProjectInfoData {
* @return
*/
public ProjectInfo getData (Long key);
}

View File

@ -8,7 +8,7 @@ import org.springframework.stereotype.Service;
/**
* @author DongZl
* @description:
* @description:
* @Date 2024-3-27 03:37
*/
@Service

View File

@ -72,8 +72,8 @@ public class ProjectInfoController extends BaseController {
/**
*
*/
@ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query")
@ApiOperation("获取商品信息信息")
// @RequiresPermissions("product:info:query")
@GetMapping(value = "/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<ProjectInfo> getInfo(@PathVariable("id") Long id) {
@ -84,7 +84,7 @@ public class ProjectInfoController extends BaseController {
*
*/
@ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query")
// @RequiresPermissions("product:info:query")
@GetMapping(value = "/cache/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<ProjectInfo> getCacheInfo(@PathVariable("id") Long id) {
@ -95,7 +95,7 @@ public class ProjectInfoController extends BaseController {
*
*/
@ApiOperation("获取商品信息详细信息")
@RequiresPermissions("product:info:query")
// @RequiresPermissions("product:info:query")
@GetMapping(value = "/detail/{id}")
@ApiImplicitParam(name = "id", value = "id", required = true, dataType = "Long", paramType = "path", dataTypeClass = Long.class)
public Result<ProjectDetailResp> getDetailInfo(@PathVariable("id") Long id) {

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置

View File

@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: 111.229.102.61:8848
# 配置文件格式
file-extension: yml
# 共享配置