Commit 32ca2f53 by chenweisong

更新

parent 1c7b0ede
......@@ -28,10 +28,10 @@
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-data-mongodb</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.cloud</groupId>-->
<!-- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
......
......@@ -5,10 +5,14 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableSwagger2
@SpringBootApplication(exclude={
@EnableFeignClients
//@EnableDiscoveryClient
@SpringBootApplication(exclude = {
org.activiti.spring.boot.SecurityAutoConfiguration.class,
SecurityAutoConfiguration.class
})
......
......@@ -93,6 +93,5 @@ public class ExcelController {
// } else {
return ApiResponse.ok();
// }
}
}
......@@ -14,13 +14,15 @@ import org.springframework.web.bind.annotation.*;
import java.util.*;
@Api(description = "用户/机构/补录范围 控制器")
//@RestController
@RestController
@RequestMapping(path = "/api")
public class UserController {
@Autowired
private UserService userService;
@Autowired
private UserFeignService userFeignService;
@Autowired
private GroupService groupService;
@Autowired
private RecordScopeService recordScopeService;
......
package com.keymobile.rest.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
/**
* 查找spring cloud中服务名为authService的服务
*/
@FeignClient(value = "authService")
public interface UserFeignService {
@GetMapping("/authservice/orgs")
String getAllOrgs();
}
......@@ -11,14 +11,18 @@ eureka:
prefer-ip-address: false
hostname: 192.168.0.48
feign:
hystrix:
enabled: true
spring:
application:
name: activiti
jpa:
show-sql: false
database-platform: org.hibernate.dialect.MySQL5Dialect
# hibernate:
# ddl-auto: update
# hibernate:
# ddl-auto: update
datasource:
url: jdbc:mysql://192.168.0.192:3306/cmb_dev?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
username: test
......@@ -31,7 +35,7 @@ spring:
max-request-size: 100Mb
redis:
host: 192.168.0.192
# host: 127.0.0.1
# host: 127.0.0.1
port: 6379
session:
store-type: redis
......@@ -46,7 +50,7 @@ app:
active-process: MoreSubProcess.bpmn
swagger2:
host: 127.0.0.1:8110
host: localhost:8110
security:
permit: true
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment