Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8d30479f
authored
May 04, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复gateway,order,user服务compose启动错误
1 parent
fbe7ac3b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
6 deletions
project-gateway/src/main/java/com/dituhui/mp/gateway/Application.java
project-gateway/src/main/java/com/dituhui/mp/gateway/auth/UserAuthService.java
project-gateway/src/main/java/com/dituhui/mp/gateway/config/SleuthFilter.java
project-gateway/src/main/java/com/dituhui/mp/gateway/controller/TokenController.java
project-interface/pom.xml
project-order/pom.xml
project-user/pom.xml
project-gateway/src/main/java/com/dituhui/mp/gateway/Application.java
View file @
8d30479
...
...
@@ -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
...
...
project-gateway/src/main/java/com/dituhui/mp/gateway/auth/UserAuthService.java
View file @
8d30479
...
...
@@ -28,7 +28,7 @@ import java.util.*;
*
* @author dk
*/
@Component
//
@Component
@Slf4j
public
class
UserAuthService
{
...
...
project-gateway/src/main/java/com/dituhui/mp/gateway/config/SleuthFilter.java
View file @
8d30479
...
...
@@ -35,7 +35,7 @@ import reactor.core.publisher.Mono;
import
java.util.*
;
@Component
//
@Component
@Slf4j
public
class
SleuthFilter
implements
GlobalFilter
,
Ordered
{
...
...
project-gateway/src/main/java/com/dituhui/mp/gateway/controller/TokenController.java
View file @
8d30479
...
...
@@ -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
);
...
...
project-interface/pom.xml
View file @
8d30479
...
...
@@ -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>
...
...
project-order/pom.xml
View file @
8d30479
...
...
@@ -71,6 +71,12 @@
<artifactId>
project-common
</artifactId>
<version>
${revision}
</version>
</dependency>
<dependency>
<groupId>
org.postgresql
</groupId>
<artifactId>
postgresql
</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
...
...
project-user/pom.xml
View file @
8d30479
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment