Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
order-group
Commits
95933bb9
Commit
95933bb9
authored
Mar 31, 2020
by
姜海波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改eureka 注册名
parent
e105132e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
8 deletions
+33
-8
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
+23
-4
order-application-service/src/main/resources/application.properties
+8
-4
order-management/order-management.iml
+2
-0
No files found.
order-application-service/src/main/java/cn/freemud/controller/OrderController.java
View file @
95933bb9
...
@@ -22,6 +22,7 @@ import cn.freemud.service.EncircleOrderService;
...
@@ -22,6 +22,7 @@ import cn.freemud.service.EncircleOrderService;
import
cn.freemud.service.OrderAdapterService
;
import
cn.freemud.service.OrderAdapterService
;
import
cn.freemud.service.Orderservice
;
import
cn.freemud.service.Orderservice
;
import
cn.freemud.service.impl.MallOrderServiceImpl
;
import
cn.freemud.service.impl.MallOrderServiceImpl
;
import
cn.freemud.service.thirdparty.LocalTest
;
import
cn.freemud.utils.ResponseUtil
;
import
cn.freemud.utils.ResponseUtil
;
import
com.freemud.application.sdk.api.log.ApiAnnotation
;
import
com.freemud.application.sdk.api.log.ApiAnnotation
;
import
com.freemud.application.sdk.api.log.LogParams
;
import
com.freemud.application.sdk.api.log.LogParams
;
...
@@ -29,10 +30,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -29,10 +30,7 @@ import io.swagger.annotations.ApiOperation;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
...
@@ -51,6 +49,9 @@ public class OrderController {
...
@@ -51,6 +49,9 @@ public class OrderController {
@Autowired
@Autowired
private
MallOrderServiceImpl
mallOrderService
;
private
MallOrderServiceImpl
mallOrderService
;
@Autowired
private
LocalTest
lt
;
/**
/**
* 创建订单之前校验前面排队的订单数
* 创建订单之前校验前面排队的订单数
*/
*/
...
@@ -220,4 +221,22 @@ public class OrderController {
...
@@ -220,4 +221,22 @@ public class OrderController {
return
mallOrderService
.
orderAffirm
(
request
);
return
mallOrderService
.
orderAffirm
(
request
);
}
}
/**
* 订单确认完成
*/
@ApiAnnotation
(
logMessage
=
"affirm"
)
@GetMapping
(
"/orderTimeout"
)
public
BaseResponse
orderTimeout
()
{
return
lt
.
test
();
}
/**
* 订单确认完成
*/
@ApiAnnotation
(
logMessage
=
"affirm"
)
@GetMapping
(
"/orderTimeout1"
)
public
BaseResponse
orderTimeout1
()
{
return
lt
.
test2
();
}
}
}
order-application-service/src/main/resources/application.properties
View file @
95933bb9
...
@@ -10,8 +10,8 @@ spring.redis.pool.max-active = 100
...
@@ -10,8 +10,8 @@ spring.redis.pool.max-active = 100
jasypt.encryptor.bean
=
jasyptStringEncryptorFreemud
jasypt.encryptor.bean
=
jasyptStringEncryptorFreemud
##### eureka
##### eureka
###eureka.instance.preferIpAddress = true
###eureka.instance.preferIpAddress = true
eureka.client.register-with-eureka
=
fals
e
eureka.client.register-with-eureka
=
tru
e
eureka.client.fetch-registry
=
fals
e
eureka.client.fetch-registry
=
tru
e
eureka.client.serviceUrl.defaultZone
=
http://localhost:8080/eureka/
eureka.client.serviceUrl.defaultZone
=
http://localhost:8080/eureka/
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
eureka.instance.instance-id
=
${spring.cloud.client.ipAddress}:${server.port}
eureka.instance.instance-id
=
${spring.cloud.client.ipAddress}:${server.port}
...
@@ -52,8 +52,8 @@ mybatis.configuration.log-impl = org.apache.ibatis.logging.stdout.StdOutImpl
...
@@ -52,8 +52,8 @@ mybatis.configuration.log-impl = org.apache.ibatis.logging.stdout.StdOutImpl
mybatis.mapper-locations
=
classpath*:mapper/*.xml,classpath*:mapper/*/*.xml,classpath*:com.freemud.sdk.api.assortment.orderdistributor.mapper/*.xml
mybatis.mapper-locations
=
classpath*:mapper/*.xml,classpath*:mapper/*/*.xml,classpath*:com.freemud.sdk.api.assortment.orderdistributor.mapper/*.xml
mybatis.type-aliases-package
=
cn.freemud.entities.db,com.freemud.api.assortment.datamanager.entity.db
mybatis.type-aliases-package
=
cn.freemud.entities.db,com.freemud.api.assortment.datamanager.entity.db
##### Fegin
##### Fegin
ribbon.ReadTimeout
=
10000
ribbon.ReadTimeout
=
10000
0
ribbon.ConnectTimeout
=
10000
ribbon.ConnectTimeout
=
10000
0
feign.hystirx.enable
=
false
feign.hystirx.enable
=
false
logging.level.org.springframework.security
=
DEBUG
logging.level.org.springframework.security
=
DEBUG
feign.compression.request.enabled
=
true
feign.compression.request.enabled
=
true
...
@@ -282,3 +282,7 @@ management.health.rabbit.enabled = false
...
@@ -282,3 +282,7 @@ management.health.rabbit.enabled = false
eureka.instance.preferIpAddress
=
true
eureka.instance.preferIpAddress
=
true
ribbon.MaxTotalConnections
=
200
ribbon.MaxConnectionsPerHost
=
100
#feign.httpclient.enabled=false
order-management/order-management.iml
View file @
95933bb9
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.1.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"PROVIDED"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.1.5.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.freemud.application.service.sdk:takeawaycenter-sdk:1.2.3-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.freemud.application.service.sdk:takeawaycenter-sdk:1.2.3-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.3.0-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.3.0-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.freemud.application.service.sdk:takeawaycenter-sdk:1.2.3-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: cn.freemud:assortment-ordercenter-sdk:1.3.0-SNAPSHOT"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-starter-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test-autoconfigure:1.5.3.RELEASE"
level=
"project"
/>
<orderEntry
type=
"library"
scope=
"TEST"
name=
"Maven: org.springframework.boot:spring-boot-test-autoconfigure:1.5.3.RELEASE"
level=
"project"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment