配置打包

master
邱飞云 4 years ago
parent 991f319a89
commit 17d1f2003d
  1. 38
      .gitignore
  2. 4
      dq-financial-hrms/src/main/java/com/daqing/financial/hrms/controller/DeptController.java
  3. 2
      dq-govern-gateway/src/main/resources/jwt.properties

38
.gitignore vendored

@ -1,38 +0,0 @@
target/
logs/
.mvn/
mvnw
mvnw.cmd
!**/src/main/**
!**/src/test/**
src/main/resources/docs/
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
### VS Code ###
.vscode/
### Java template
*.class

@ -6,6 +6,8 @@ import com.daqing.framework.domain.hrms.DepartmentVO;
import com.daqing.framework.domain.hrms.DeptEntity; import com.daqing.framework.domain.hrms.DeptEntity;
import com.daqing.framework.domain.hrms.request.DeptAddRequest; import com.daqing.framework.domain.hrms.request.DeptAddRequest;
import com.daqing.framework.model.response.ResponseResult; import com.daqing.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
@ -21,6 +23,7 @@ import java.util.List;
*/ */
@RestController @RestController
@RequestMapping("hrms/dept") @RequestMapping("hrms/dept")
@Api(tags = {"测试swagger"})
public class DeptController implements DeptControllerApi { public class DeptController implements DeptControllerApi {
@Autowired @Autowired
@ -34,6 +37,7 @@ public class DeptController implements DeptControllerApi {
*/ */
@Override @Override
@PostMapping("/save") @PostMapping("/save")
@ApiOperation(value = "111")
//@RequiresPermissions("hrms:dept:save") //@RequiresPermissions("hrms:dept:save")
public ResponseResult save(@RequestBody DeptAddRequest deptAddRequest) { public ResponseResult save(@RequestBody DeptAddRequest deptAddRequest) {
boolean result = deptService.saveDept(deptAddRequest); boolean result = deptService.saveDept(deptAddRequest);

@ -1 +1 @@
jwt.ignoreUrlList=/apiHrmsAuth/hrms/auth/userlogin/getBackPwd,/apiHrmsAuth/hrms/auth/userlogin/login,/apiHrmsAuth/hrms/auth/userlogin/verifyMobile jwt.ignoreUrlList=/apiHrmsAuth/hrms/auth/userlogin/getBackPwd,/apiHrmsAuth/hrms/auth/userlogin/login,/apiHrmsAuth/hrms/auth/userlogin/verifyMobile
Loading…
Cancel
Save