File tree 12 files changed +26
-127
lines changed
gpmall-shopping/src/main/resources
order-services/order-provider
src/test/java/com/gpmall/order/bootstrap
pay-service/pay-provider/src/main/resources
search-service/search-provider/src/main/resources
12 files changed +26
-127
lines changed Original file line number Diff line number Diff line change 131
131
</execution >
132
132
</executions >
133
133
</plugin >
134
- <plugin >
134
+ <!-- <plugin>
135
135
<groupId>org.mybatis.generator</groupId>
136
136
<artifactId>mybatis-generator-maven-plugin</artifactId>
137
- </plugin >
137
+ </plugin>-->
138
138
</plugins >
139
139
<resources >
140
140
<resource >
Original file line number Diff line number Diff line change 34
34
owner : Heps
35
35
protocol :
36
36
name : dubbo
37
- port : 20885
37
+ port : 20886
38
38
registry :
39
39
address : zookeeper://zk.gpmall.com:2181
40
40
check : true
Original file line number Diff line number Diff line change 34
34
owner : Heps
35
35
protocol :
36
36
name : dubbo
37
- port : 20880
37
+ port : 20886
38
38
registry :
39
39
address : zookeeper://localhost:2181
40
40
check : true
Original file line number Diff line number Diff line change 1
1
spring :
2
2
profiles :
3
- active : dev
3
+ active : prod
4
4
mybatis :
5
5
mapper-locations : classpath*:com/gpmall/comment/dal/persistence/*Mapper.xml"
6
6
type-aliases-package : com.gpmall.comment.dal.entitys
Original file line number Diff line number Diff line change 2
2
application :
3
3
name : gpmall-shopping
4
4
profiles :
5
- active : dev
5
+ active : prod
6
6
server :
7
7
port : 8081
8
8
Original file line number Diff line number Diff line change 128
128
<groupId>org.mybatis.generator</groupId>
129
129
<artifactId>mybatis-generator-maven-plugin</artifactId>
130
130
</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 >
159
131
</plugins >
160
132
<resources >
161
133
<resource >
Original file line number Diff line number Diff line change 1
1
package com .gpmall .order .bootstrap ;
2
2
3
- import com .gpmall .order .dal .entitys .OrderItem ;
4
- import com .gpmall .order .dal .persistence .OrderItemMapper ;
5
- import com .gpmall .order .dal .persistence .OrderMapper ;
6
3
import org .junit .Test ;
7
4
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 ;
11
5
import org .springframework .boot .test .context .SpringBootTest ;
12
6
import org .springframework .test .context .junit4 .SpringRunner ;
13
7
14
- import java .util .Collections ;
15
- import java .util .List ;
16
-
17
8
@ RunWith (SpringRunner .class )
18
9
@ SpringBootTest
19
10
public class OrderProviderApplicationTests {
20
11
21
-
22
-
23
12
@ Test
24
13
public void contextLoads () {
25
14
}
26
15
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
-
41
16
}
Original file line number Diff line number Diff line change 2
2
datasource :
3
3
url : jdbc:mysql://localhost:3306/gpmall?useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
4
4
username : root
5
- password : 123456
5
+ password : Admin@123
6
6
driver-class-name : com.mysql.cj.jdbc.Driver
7
7
type : com.alibaba.druid.pool.DruidDataSource
8
8
initialSize : 2
Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ mybatis:
8
8
9
9
ali :
10
10
ali_service : create_direct_pay_by_user
11
- ali_partner : 2088721158773470
11
+ ali_partner :
12
12
input_charset : utf-8
13
13
sign_type : MD5
14
14
notify_url : http://demo.gupaoedu.cn/pay/alipayNotify
15
15
return_url : http://demo.gupaoedu.cn/pay/syncResult
16
- seller_id : 2088721158773470
17
-
16
+ seller_id :
17
+ seller_email :
18
18
pay_gateway_new : https://mapi.alipay.com/gateway.do?
19
19
it_b_pay : 1h
20
- private_key: MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCKBlUHGVcK9MrPSub88sE78Q3CNkgBxCFiSQ0bIwpATozXk/MvibFwDWnCX0Z0hqK8qxPsereZc5TZ11g3mfj6SvKzHRCRUeeSUvLJrlOA3LffKvRb5vqwx1fsZF+pic/rEfspEvuG/hLOn8TrYeKKlJn9D0GTrRv3QaqCIbPWvDW0yQS++Z42JERyf7210kKZqq9BZ602C0qqciI2JYXdXzvHbe7qzvzSWJE/g7/4bcqhrS7zI7uo1P/4XFcZD4W9PyY2unSr5CZqyXBcb8DBcmiQej7Ppf9WYi0bta6cRcfqgE9dP0Md5S+U9ja1mDzMfr3vMSWSd35F+4RaGbcTAgMBAAECggEAXPr5Cqg6Z+oSOeTWiK4sGGpB/4Q7q9zpNGHLz20iecGwxYUofOzAOKEAju1J9DPCq2CAMn1U863WJ44XIpW6ETquFpVM1OidHIh+f/jMzfFieJdiOAr49F/Fzjyr6PUquMvLK5dbFExSdRlSOdMeHocO2VgOsCIcxctZxwJXOR9aPzhsR/stw7+Kr2R2eSr7uj10A/64/DSycKl+ipawySe3xjgNaJBYgLqfp6i5j/DRLOt28C/c0R5/sRXcgqN/iWePVK9Kw2J5MBY4H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mXOU2ddYN5n4+krysx0QkVHnklLyya5TgNy33yr0W+b6sMdX7GRfqYnP6xH7KRL7hv4Szp/E62HiipSZ/Q9Bk60b90GqgiGz1rw1tMkEvvmeNiREcn+9tdJCmaqvQWetNgtKqnIiNiWF3V87x23u6s780liRP4O/+G3Koa0u8yO7qNT/+FxXGQ+FvT8mNrp0q+QmaslwXG/AwXJokHo+z6X/VmItG7WunEXH6oBPXT9DHeUvlPY2tZg8zH697zElknd+RfuEWhm3EwIDAQAB
22
22
pay_open_gateway : https://openapi.alipay.com/gateway.do
23
23
# 退款接口名
Original file line number Diff line number Diff line change 2
2
datasource :
3
3
url : jdbc:mysql://localhost:3306/gpmall?useUnicode=true&characterEncoding=utf8&useOldAliasMetadataBehavior=true&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true
4
4
username : root
5
- password : 123456
5
+ password : Admin@123
6
6
driver-class-name : com.mysql.cj.jdbc.Driver
7
7
type : com.alibaba.druid.pool.DruidDataSource
8
8
initialSize : 2
@@ -20,22 +20,23 @@ spring:
20
20
connectionProperties : druid.stat.mergeSql=true;druid.stat.slowSqlMillis=500
21
21
useGlobalDataSourceStat : true
22
22
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
31
31
data :
32
32
elasticsearch :
33
- cluster-name : docker-cluster
34
- cluster-nodes : es.gupaoedu.com:9300
33
+ cluster-name : elasticsearch
34
+ cluster-nodes : localhost:9300
35
+
35
36
dubbo :
36
37
application :
37
- name : pay -services
38
- owner : Mic
38
+ name : search -services
39
+ owner : gp-search
39
40
protocol :
40
41
name : dubbo
41
42
port : 20884
50
51
cycle-report : false
51
52
group : dubbo-dev
52
53
scan :
53
- base-packages : com.gpmall.pay.services
54
-
55
-
56
-
57
-
54
+ base-packages : com.gpmall.search.services
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments