Commit 8d30479f by chamberone

fix: 修复gateway,order,user服务compose启动错误

1 parent fbe7ac3b
......@@ -4,11 +4,15 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.filter.ratelimit.KeyResolver;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import reactor.core.publisher.Mono;
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
public class Application {
@Bean
......
......@@ -28,7 +28,7 @@ import java.util.*;
*
* @author dk
*/
@Component
//@Component
@Slf4j
public class UserAuthService {
......
......@@ -35,7 +35,7 @@ import reactor.core.publisher.Mono;
import java.util.*;
@Component
//@Component
@Slf4j
public class SleuthFilter implements GlobalFilter, Ordered {
......
......@@ -17,8 +17,8 @@ import org.springframework.web.bind.annotation.*;
*
* @author dk
*/
@RestController
@RequestMapping("/token")
//@RestController
//@RequestMapping("/token")
public class TokenController {
private final static Log log = LogFactory.getLog(TokenController.class);
......
......@@ -14,8 +14,12 @@
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bus-kafka</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
......
......@@ -71,6 +71,12 @@
<artifactId>project-common</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
......
......@@ -99,6 +99,13 @@
<artifactId>postgresql</artifactId>
</dependency>
<!-- temp -->
<dependency>
<groupId>com.belerweb</groupId>
<artifactId>pinyin4j</artifactId>
<version>2.5.1</version>
</dependency>
</dependencies>
<build>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!