Skip to content

Commit 9cde4c6

Browse files
committed
修复bug
1 parent da5ef6a commit 9cde4c6

File tree

12 files changed

+26
-127
lines changed

12 files changed

+26
-127
lines changed

comment-service/comment-provider/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@
131131
</execution>
132132
</executions>
133133
</plugin>
134-
<plugin>
134+
<!-- <plugin>
135135
<groupId>org.mybatis.generator</groupId>
136136
<artifactId>mybatis-generator-maven-plugin</artifactId>
137-
</plugin>
137+
</plugin>-->
138138
</plugins>
139139
<resources>
140140
<resource>

comment-service/comment-provider/src/main/resources/application-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dubbo:
3434
owner: Heps
3535
protocol:
3636
name: dubbo
37-
port: 20885
37+
port: 20886
3838
registry:
3939
address: zookeeper://zk.gpmall.com:2181
4040
check: true

comment-service/comment-provider/src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dubbo:
3434
owner: Heps
3535
protocol:
3636
name: dubbo
37-
port: 20880
37+
port: 20886
3838
registry:
3939
address: zookeeper://localhost:2181
4040
check: true

comment-service/comment-provider/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
spring:
22
profiles:
3-
active: dev
3+
active: prod
44
mybatis:
55
mapper-locations: classpath*:com/gpmall/comment/dal/persistence/*Mapper.xml"
66
type-aliases-package: com.gpmall.comment.dal.entitys

gpmall-front/src.zip

163 KB
Binary file not shown.

gpmall-shopping/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
application:
33
name: gpmall-shopping
44
profiles:
5-
active: dev
5+
active: prod
66
server:
77
port: 8081
88

order-services/order-provider/pom.xml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -128,34 +128,6 @@
128128
<groupId>org.mybatis.generator</groupId>
129129
<artifactId>mybatis-generator-maven-plugin</artifactId>
130130
</plugin>-->
131-
<plugin>
132-
<groupId>org.mybatis.generator</groupId>
133-
<artifactId>mybatis-generator-maven-plugin</artifactId>
134-
<configuration>
135-
<configurationFile>${basedir}/src/main/resources/mybatis-generater.xml</configurationFile>
136-
<!--<configurationFile>${basedir}/src/main/resources/generator/generatorConfigOracle.xml</configurationFile>-->
137-
<overwrite>true</overwrite>
138-
<verbose>true</verbose>
139-
</configuration>
140-
<dependencies>
141-
<dependency>
142-
<groupId>com.github.drtrang</groupId>
143-
<artifactId>mybatis-generator-extension</artifactId>
144-
<version>0.0.4</version>
145-
</dependency>
146-
<dependency>
147-
<groupId>mysql</groupId>
148-
<artifactId>mysql-connector-java</artifactId>
149-
<version>5.1.44</version>
150-
</dependency>
151-
152-
<dependency>
153-
<groupId>tk.mybatis</groupId>
154-
<artifactId>mapper</artifactId>
155-
<version>3.4.2</version>
156-
</dependency>
157-
</dependencies>
158-
</plugin>
159131
</plugins>
160132
<resources>
161133
<resource>
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,16 @@
11
package com.gpmall.order.bootstrap;
22

3-
import com.gpmall.order.dal.entitys.OrderItem;
4-
import com.gpmall.order.dal.persistence.OrderItemMapper;
5-
import com.gpmall.order.dal.persistence.OrderMapper;
63
import org.junit.Test;
74
import org.junit.runner.RunWith;
8-
import org.redisson.api.RScript;
9-
import org.redisson.api.RedissonClient;
10-
import org.springframework.beans.factory.annotation.Autowired;
115
import org.springframework.boot.test.context.SpringBootTest;
126
import org.springframework.test.context.junit4.SpringRunner;
137

14-
import java.util.Collections;
15-
import java.util.List;
16-
178
@RunWith(SpringRunner.class)
189
@SpringBootTest
1910
public class OrderProviderApplicationTests {
2011

21-
22-
2312
@Test
2413
public void contextLoads() {
2514
}
2615

27-
@Autowired
28-
OrderMapper orderMapper;
29-
@Autowired
30-
OrderItemMapper orderItemMapper;
31-
@Test
32-
public void mapperTest(){
33-
Long aLong = orderMapper.countAll();
34-
System.out.println("aLong = " + aLong);
35-
List<OrderItem> orderItems = orderItemMapper.queryByOrderId("121");
36-
for (OrderItem orderItem : orderItems) {
37-
System.out.println("orderItem = " + orderItem);
38-
}
39-
}
40-
4116
}

pay-service/pay-provider/src/main/resources/application-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
datasource:
33
url: jdbc:mysql://localhost:3306/gpmall?useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
44
username: root
5-
password: 123456
5+
password: Admin@123
66
driver-class-name: com.mysql.cj.jdbc.Driver
77
type: com.alibaba.druid.pool.DruidDataSource
88
initialSize: 2

pay-service/pay-provider/src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ mybatis:
88

99
ali:
1010
ali_service: create_direct_pay_by_user
11-
ali_partner: 2088721158773470
11+
ali_partner:
1212
input_charset: utf-8
1313
sign_type: MD5
1414
notify_url: http://demo.gupaoedu.cn/pay/alipayNotify
1515
return_url: http://demo.gupaoedu.cn/pay/syncResult
16-
seller_id: 2088721158773470
17-
seller_email: [email protected]
16+
seller_id:
17+
seller_email:
1818
pay_gateway_new: https://mapi.alipay.com/gateway.do?
1919
it_b_pay: 1h
20-
private_key: MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCKBlUHGVcK9MrPSub88sE78Q3CNkgBxCFiSQ0bIwpATozXk/MvibFwDWnCX0Z0hqK8qxPsereZc5TZ11g3mfj6SvKzHRCRUeeSUvLJrlOA3LffKvRb5vqwx1fsZF+pic/rEfspEvuG/hLOn8TrYeKKlJn9D0GTrRv3QaqCIbPWvDW0yQS++Z42JERyf7210kKZqq9BZ602C0qqciI2JYXdXzvHbe7qzvzSWJE/g7/4bcqhrS7z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fK+y7dvx8Rzl6OPG7tM0kINDLuP0HJxyOb4KhDectiwImtso4/hvIUCnx9P+z5qYOZAECgYB7egX4vUMnZSBs0d2hhfKK9P0e7paV2NET9oMy5g9Q6Y+vY+hwFcDMFmJnyZ2tyrHNOAVoZAV+LZhrXn0toINlwTvuP7vofWLnLfhVMsUVeaePAVDjgOb1EFSwMW8bOub9ywBSe65FeWHmFjTOP4PnOIuv/VVynbpOT0i9Fpo9sw==
20+
private_key:
2121
public_key: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAigZVBxlXCvTKz0rm/PLBO/ENwjZIAcQhYkkNGyMKQE6M15PzL4mxcA1pwl9GdIaivKsT7Hq3mXOU2ddYN5n4+krysx0QkVHnklLyya5TgNy33yr0W+b6sMdX7GRfqYnP6xH7KRL7hv4Szp/E62HiipSZ/Q9Bk60b90GqgiGz1rw1tMkEvvmeNiREcn+9tdJCmaqvQWetNgtKqnIiNiWF3V87x23u6s780liRP4O/+G3Koa0u8yO7qNT/+FxXGQ+FvT8mNrp0q+QmaslwXG/AwXJokHo+z6X/VmItG7WunEXH6oBPXT9DHeUvlPY2tZg8zH697zElknd+RfuEWhm3EwIDAQAB
2222
pay_open_gateway: https://openapi.alipay.com/gateway.do
2323
#退款接口名

search-service/search-provider/src/main/resources/application-prod.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ spring:
22
datasource:
33
url: jdbc:mysql://localhost:3306/gpmall?useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
44
username: root
5-
password: 123456
5+
password: Admin@123
66
driver-class-name: com.mysql.cj.jdbc.Driver
77
type: com.alibaba.druid.pool.DruidDataSource
88
initialSize: 2
@@ -20,22 +20,23 @@ spring:
2020
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
2121
useGlobalDataSourceStat: true
2222
redisson:
23-
address: localhost:6379
24-
timeout: 3000
25-
database: 0
26-
pool:
27-
max-active: 20
28-
max-idle: 10
29-
max-wait: 3000
30-
min-idle: 4
23+
address: localhost:6379
24+
timeout: 3000
25+
database: 0
26+
pool:
27+
max-active: 20
28+
max-idle: 10
29+
max-wait: 3000
30+
min-idle: 4
3131
data:
3232
elasticsearch:
33-
cluster-name: docker-cluster
34-
cluster-nodes: es.gupaoedu.com:9300
33+
cluster-name: elasticsearch
34+
cluster-nodes: localhost:9300
35+
3536
dubbo:
3637
application:
37-
name: pay-services
38-
owner: Mic
38+
name: search-services
39+
owner: gp-search
3940
protocol:
4041
name: dubbo
4142
port: 20884
@@ -50,8 +51,4 @@ dubbo:
5051
cycle-report: false
5152
group: dubbo-dev
5253
scan:
53-
base-packages: com.gpmall.pay.services
54-
55-
56-
57-
54+
base-packages: com.gpmall.search.services

search-service/search-provider/src/main/resources/logback.xml

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)