Ver código fonte

注释修改,角色功能

LiTaohong 7 anos atrás
pai
commit
8df610d40e

+ 14 - 0
svr/svr-base/src/main/java/com/yihu/jw/business/user/contorller/RoleController.java

@ -0,0 +1,14 @@
package com.yihu.jw.business.user.contorller;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * Created by LiTaohong on 2017/11/28.
 */
@RestController
@RequestMapping("/role")
@Api(description = "角色")
public class RoleController {
}

+ 11 - 0
svr/svr-base/src/main/java/com/yihu/jw/business/user/dao/RoleDao.java

@ -0,0 +1,11 @@
package com.yihu.jw.business.user.dao;
import com.yihu.jw.base.user.BaseRoleDO;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
 * Created by LiTaohong on 2017/11/28.
 */
public interface RoleDao extends PagingAndSortingRepository<BaseRoleDO, String>, JpaSpecificationExecutor<BaseRoleDO> {
}

+ 13 - 0
svr/svr-base/src/main/java/com/yihu/jw/business/user/service/RoleService.java

@ -0,0 +1,13 @@
package com.yihu.jw.business.user.service;
import com.yihu.base.mysql.query.BaseJpaService;
import com.yihu.jw.base.user.BaseRoleDO;
import com.yihu.jw.business.user.dao.RoleDao;
import org.springframework.stereotype.Service;
/**
 * Created by LiTaohong on 2017/11/28.
 */
@Service
public class RoleService extends BaseJpaService<BaseRoleDO,RoleDao>{
}

+ 2 - 2
web-gateway/src/main/resources/application.yml

@ -1,7 +1,7 @@
##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主
spring:
  application:
    name:  web-gateway  ##注册到发现服务的id 如果id一样 eurika会自动做负载
    name:  web-gateway  #注册到发现服务的id 如果id一样 eurika会自动做负载
  http:
    multipart:
      enabled: true
@ -16,7 +16,7 @@ feign:
management:
  security:
    enabled: false  ##关闭 refresh的权限认证
    enabled: false  #关闭 refresh的权限认证

+ 3 - 3
web-gateway/src/main/resources/bootstrap.yml

@ -3,12 +3,12 @@ spring:
  #从发现服务里面取配置服务的信息
  cloud:
    config:
      failFast: false ##启动快速失败 即链接不到配置服务就启动失败
      failFast: false #启动快速失败 即链接不到配置服务就启动失败
      username: jw
      password: jkzl
      discovery:
        enabled: true ##使用发现服务
        service-id: svr-configurations ##配置服务的名字
        enabled: true #使用发现服务
        service-id: svr-configurations #配置服务的名字
---