Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fileServe
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vanke
fileServe
Commits
40285018
Commit
40285018
authored
Jul 20, 2020
by
XiaHou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
万科文档下载
parent
a8704eed
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
67 additions
and
154 deletions
+67
-154
application.yml
mall-admin/src/main/resources/application.yml
+7
-5
pom.xml
mall-config/pom.xml
+2
-2
application-native.yml
mall-config/src/main/resources/application-native.yml
+2
-2
application.yml
mall-config/src/main/resources/application.yml
+1
-7
admin-dev.yml
mall-config/src/main/resources/config/admin/admin-dev.yml
+2
-2
portal-dev.yml
mall-config/src/main/resources/config/portal/portal-dev.yml
+3
-17
portal-prod.yml
mall-config/src/main/resources/config/portal/portal-prod.yml
+1
-13
pom.xml
mall-gateway/pom.xml
+2
-2
pom.xml
mall-portal/pom.xml
+0
-5
RabbitMqConfig.java
...ain/java/com/macro/mall/portal/config/RabbitMqConfig.java
+29
-13
MemberBrandAttention.java
...va/com/macro/mall/portal/domain/MemberBrandAttention.java
+0
-21
MemberBrandAttentionRepository.java
...all/portal/repository/MemberBrandAttentionRepository.java
+1
-2
MemberAttentionService.java
...com/macro/mall/portal/service/MemberAttentionService.java
+0
-14
MemberAttentionServiceImpl.java
.../mall/portal/service/impl/MemberAttentionServiceImpl.java
+0
-22
application.yml
mall-portal/src/main/resources/application.yml
+7
-17
pom.xml
mall-registry/pom.xml
+2
-2
VankeFileDao.xml
.../main/resources/com/macro/mall/dao/vanke/VankeFileDao.xml
+3
-3
pom.xml
pom.xml
+5
-5
No files found.
mall-admin/src/main/resources/application.yml
View file @
40285018
...
@@ -2,9 +2,9 @@ server:
...
@@ -2,9 +2,9 @@ server:
port
:
8182
port
:
8182
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://1
15.29.198.90
:3306/vanke_download?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://1
27.0.0.1
:3306/vanke_download?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
root
password
:
123
druid
:
druid
:
initial-size
:
5
#连接池初始化大小
initial-size
:
5
#连接池初始化大小
min-idle
:
10
#最小空闲连接数
min-idle
:
10
#最小空闲连接数
...
@@ -23,10 +23,10 @@ spring:
...
@@ -23,10 +23,10 @@ spring:
max-request-size
:
100MB
max-request-size
:
100MB
redis
:
redis
:
host
:
1
15.29.198.90
# Redis服务器地址
host
:
1
27.0.0.1
# Redis服务器地址
database
:
0
# Redis数据库索引(默认为0)
database
:
0
# Redis数据库索引(默认为0)
port
:
6379
# Redis服务器连接端口
port
:
6379
# Redis服务器连接端口
password
:
"
sixjust"
# Redis服务器连接密码(默认为空)
password
:
# Redis服务器连接密码(默认为空)
jedis
:
jedis
:
pool
:
pool
:
max-active
:
200
# 连接池最大连接数(使用负值表示没有限制)
max-active
:
200
# 连接池最大连接数(使用负值表示没有限制)
...
@@ -111,7 +111,9 @@ aliyun:
...
@@ -111,7 +111,9 @@ aliyun:
accessKeySecret
:
MThxbXZvJC38FxnL6KEr9LDfl0rHjm
# 用户用于加密签名字符串和oss用来验证签名字符串的密钥
accessKeySecret
:
MThxbXZvJC38FxnL6KEr9LDfl0rHjm
# 用户用于加密签名字符串和oss用来验证签名字符串的密钥
bucketName
:
haihaigo
# oss的存储空间
bucketName
:
haihaigo
# oss的存储空间
filepath
:
D:/files/
#本地文件存储路径
filepath
:
D:/files/
#本地文件存储路径
fileUrl
:
192.168.31.127:8401/mall-admin/files/
#本地访问上传文件 如果部署到线上需要通过nginx去配置
fileUrl
:
192.168.223.100:8401/mall-admin/files/
#本地访问上传文件 如果部署到线上需要通过nginx去配置
#filepath: /usr/local/java-file/ #本地文件存储路径
#fileUrl: http://vankefile.jsonpro.cn/files/ #本地访问上传文件 如果部署到线上需要通过nginx去配置
policy
:
policy
:
expire
:
300
# 签名有效期(S)
expire
:
300
# 签名有效期(S)
maxSize
:
1024
# 上传文件大小(M)
maxSize
:
1024
# 上传文件大小(M)
...
...
mall-config/pom.xml
View file @
40285018
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugin>
<plugin>
<!--
<plugin>
<groupId>com.spotify</groupId>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<version>${docker.maven.plugin.version}</version>
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
</resource>
</resource>
</resources>
</resources>
</configuration>
</configuration>
</plugin>
</plugin>
-->
</plugins>
</plugins>
</build>
</build>
...
...
mall-config/src/main/resources/application-native.yml
View file @
40285018
...
@@ -2,4 +2,4 @@ eureka:
...
@@ -2,4 +2,4 @@ eureka:
client
:
client
:
service-url
:
service-url
:
# defaultZone: http://localhost:8001/eureka/
# defaultZone: http://localhost:8001/eureka/
defaultZone
:
http://mall-registry:8002/eureka/
defaultZone
:
http://127.0.0.1:8002/eureka/
\ No newline at end of file
\ No newline at end of file
mall-config/src/main/resources/application.yml
View file @
40285018
...
@@ -4,7 +4,7 @@ spring:
...
@@ -4,7 +4,7 @@ spring:
application
:
application
:
name
:
mall-config
name
:
mall-config
profiles
:
profiles
:
active
:
dev
#使用本地配置,要使用git存储改为git即可
active
:
native
#使用本地配置,要使用git存储改为git即可
cloud
:
cloud
:
config
:
config
:
server
:
server
:
...
@@ -12,9 +12,3 @@ spring:
...
@@ -12,9 +12,3 @@ spring:
search-locations
:
classpath:/config/{application}
search-locations
:
classpath:/config/{application}
native
:
#本地仓库存储
native
:
#本地仓库存储
search-locations
:
classpath:/config/{application}
search-locations
:
classpath:/config/{application}
git
:
#Git仓库存储
uri
:
http://git.jsonpro.cn/S2B2C/server.git
username
:
349830964@qq.com
password
:
2017gzmm
clone-on-start
:
true
search-paths
:
'
{application}'
mall-config/src/main/resources/config/admin/admin-dev.yml
View file @
40285018
...
@@ -12,9 +12,9 @@ aliyun:
...
@@ -12,9 +12,9 @@ aliyun:
prefix
:
mall/images/
# 上传文件夹路径前缀
prefix
:
mall/images/
# 上传文件夹路径前缀
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://1
15.29.198.90:3306/haihaigo
?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://1
27.0.0.1:3306/vanke_download
?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
root
password
:
123
logging
:
logging
:
level
:
level
:
root
:
info
#日志配置DEBUG,INFO,WARN,ERROR
root
:
info
#日志配置DEBUG,INFO,WARN,ERROR
...
...
mall-config/src/main/resources/config/portal/portal-dev.yml
View file @
40285018
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://1
15.29.198.90:3306/haihaigo
?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://1
27.0.0.1:3306/vanke_download
?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
root
password
:
123
data
:
mongodb
:
host
:
129.204.227.14
port
:
27017
database
:
mall-port
redis
:
redis
:
host
:
12
9.204.227.14
# Redis服务器地址
host
:
12
7.0.0.1
# Redis服务器地址
database
:
0
# Redis数据库索引(默认为0)
database
:
0
# Redis数据库索引(默认为0)
port
:
6379
# Redis服务器连接端口
port
:
6379
# Redis服务器连接端口
password
:
# Redis服务器连接密码(默认为空)
password
:
# Redis服务器连接密码(默认为空)
rabbitmq
:
host
:
129.204.227.14
port
:
5672
virtual-host
:
/mall
username
:
mall
password
:
mall
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
# 日志配置
# 日志配置
logging
:
logging
:
level
:
level
:
org.springframework.data.mongodb.core
:
debug
com.macro.mall.mapper
:
debug
com.macro.mall.mapper
:
debug
com.macro.mall.portal.dao
:
debug
com.macro.mall.portal.dao
:
debug
\ No newline at end of file
mall-config/src/main/resources/config/portal/portal-prod.yml
View file @
40285018
...
@@ -3,21 +3,9 @@ spring:
...
@@ -3,21 +3,9 @@ spring:
url
:
jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
2017gzMM
password
:
2017gzMM
data
:
mongodb
:
host
:
mongo
port
:
27017
database
:
mall-port
redis
:
redis
:
host
:
redis
# Redis服务器地址
host
:
127.0.0.1
# Redis服务器地址
database
:
0
# Redis数据库索引(默认为0)
database
:
0
# Redis数据库索引(默认为0)
port
:
6379
# Redis服务器连接端口
port
:
6379
# Redis服务器连接端口
password
:
#不设置密码
password
:
#不设置密码
rabbitmq
:
host
:
rabbit
port
:
5672
virtual-host
:
/mall
username
:
mall
password
:
mall
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
mall-gateway/pom.xml
View file @
40285018
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugin>
<plugin>
<!--
<plugin>
<groupId>com.spotify</groupId>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<version>${docker.maven.plugin.version}</version>
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</resource>
</resource>
</resources>
</resources>
</configuration>
</configuration>
</plugin>
</plugin>
-->
</plugins>
</plugins>
</build>
</build>
...
...
mall-portal/pom.xml
View file @
40285018
...
@@ -29,11 +29,6 @@
...
@@ -29,11 +29,6 @@
<groupId>
com.macro.mall
</groupId>
<groupId>
com.macro.mall
</groupId>
<artifactId>
mall-service
</artifactId>
<artifactId>
mall-service
</artifactId>
</dependency>
</dependency>
<!--mongodb依赖配置-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-mongodb
</artifactId>
</dependency>
<!--redis依赖配置-->
<!--redis依赖配置-->
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
...
...
mall-portal/src/main/java/com/macro/mall/portal/config/RabbitMqConfig.java
View file @
40285018
/*
package com.macro.mall.portal.config;
package com.macro.mall.portal.config;
import com.macro.mall.portal.domain.QueueEnum;
import com.macro.mall.portal.domain.QueueEnum;
...
@@ -5,16 +6,20 @@ import org.springframework.amqp.core.*;
...
@@ -5,16 +6,20 @@ import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Configuration;
*/
/**
/**
* 消息队列配置
* 消息队列配置
* Created by macro on 2018/9/14.
* Created by macro on 2018/9/14.
*/
*//*
@Configuration
@Configuration
public class RabbitMqConfig {
public class RabbitMqConfig {
/**
* 订单消息实际消费队列所绑定的交换机
*/
*/
/**
* 订单消息实际消费队列所绑定的交换机
*//*
@Bean
@Bean
DirectExchange orderDirect() {
DirectExchange orderDirect() {
return (DirectExchange) ExchangeBuilder
return (DirectExchange) ExchangeBuilder
...
@@ -23,9 +28,11 @@ public class RabbitMqConfig {
...
@@ -23,9 +28,11 @@ public class RabbitMqConfig {
.build();
.build();
}
}
/**
* 订单延迟队列队列所绑定的交换机
*/
*/
/**
* 订单延迟队列队列所绑定的交换机
*//*
@Bean
@Bean
DirectExchange orderTtlDirect() {
DirectExchange orderTtlDirect() {
return (DirectExchange) ExchangeBuilder
return (DirectExchange) ExchangeBuilder
...
@@ -34,17 +41,21 @@ public class RabbitMqConfig {
...
@@ -34,17 +41,21 @@ public class RabbitMqConfig {
.build();
.build();
}
}
/**
* 订单实际消费队列
*/
*/
/**
* 订单实际消费队列
*//*
@Bean
@Bean
public Queue orderQueue() {
public Queue orderQueue() {
return new Queue(QueueEnum.QUEUE_ORDER_CANCEL.getName());
return new Queue(QueueEnum.QUEUE_ORDER_CANCEL.getName());
}
}
/**
* 订单延迟队列(死信队列)
*/
*/
/**
* 订单延迟队列(死信队列)
*//*
@Bean
@Bean
public Queue orderTtlQueue() {
public Queue orderTtlQueue() {
return QueueBuilder
return QueueBuilder
...
@@ -54,9 +65,11 @@ public class RabbitMqConfig {
...
@@ -54,9 +65,11 @@ public class RabbitMqConfig {
.build();
.build();
}
}
/**
* 将订单队列绑定到交换机
*/
*/
/**
* 将订单队列绑定到交换机
*//*
@Bean
@Bean
Binding orderBinding(DirectExchange orderDirect,Queue orderQueue){
Binding orderBinding(DirectExchange orderDirect,Queue orderQueue){
return BindingBuilder
return BindingBuilder
...
@@ -65,9 +78,11 @@ public class RabbitMqConfig {
...
@@ -65,9 +78,11 @@ public class RabbitMqConfig {
.with(QueueEnum.QUEUE_ORDER_CANCEL.getRouteKey());
.with(QueueEnum.QUEUE_ORDER_CANCEL.getRouteKey());
}
}
/**
* 将订单延迟队列绑定到交换机
*/
*/
/**
* 将订单延迟队列绑定到交换机
*//*
@Bean
@Bean
Binding orderTtlBinding(DirectExchange orderTtlDirect,Queue orderTtlQueue){
Binding orderTtlBinding(DirectExchange orderTtlDirect,Queue orderTtlQueue){
return BindingBuilder
return BindingBuilder
...
@@ -77,3 +92,4 @@ public class RabbitMqConfig {
...
@@ -77,3 +92,4 @@ public class RabbitMqConfig {
}
}
}
}
*/
mall-portal/src/main/java/com/macro/mall/portal/domain/MemberBrandAttention.java
View file @
40285018
package
com
.
macro
.
mall
.
portal
.
domain
;
package
com
.
macro
.
mall
.
portal
.
domain
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.mongodb.core.index.Indexed
;
import
org.springframework.data.mongodb.core.mapping.Document
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -10,16 +8,11 @@ import java.util.Date;
...
@@ -10,16 +8,11 @@ import java.util.Date;
* 会员关注的品牌
* 会员关注的品牌
* Created by macro on 2018/8/2.
* Created by macro on 2018/8/2.
*/
*/
@Document
public
class
MemberBrandAttention
{
public
class
MemberBrandAttention
{
@Id
@Id
private
String
id
;
private
String
id
;
@Indexed
private
Long
memberId
;
private
String
memberNickname
;
private
String
memberNickname
;
private
String
memberIcon
;
private
String
memberIcon
;
@Indexed
private
Long
brandId
;
private
String
brandName
;
private
String
brandName
;
private
String
brandLogo
;
private
String
brandLogo
;
private
String
brandCity
;
private
String
brandCity
;
...
@@ -34,13 +27,6 @@ public class MemberBrandAttention {
...
@@ -34,13 +27,6 @@ public class MemberBrandAttention {
this
.
id
=
id
;
this
.
id
=
id
;
}
}
public
Long
getMemberId
()
{
return
memberId
;
}
public
void
setMemberId
(
Long
memberId
)
{
this
.
memberId
=
memberId
;
}
public
String
getMemberNickname
()
{
public
String
getMemberNickname
()
{
return
memberNickname
;
return
memberNickname
;
...
@@ -58,13 +44,6 @@ public class MemberBrandAttention {
...
@@ -58,13 +44,6 @@ public class MemberBrandAttention {
this
.
memberIcon
=
memberIcon
;
this
.
memberIcon
=
memberIcon
;
}
}
public
Long
getBrandId
()
{
return
brandId
;
}
public
void
setBrandId
(
Long
brandId
)
{
this
.
brandId
=
brandId
;
}
public
String
getBrandName
()
{
public
String
getBrandName
()
{
return
brandName
;
return
brandName
;
...
...
mall-portal/src/main/java/com/macro/mall/portal/repository/MemberBrandAttentionRepository.java
View file @
40285018
package
com
.
macro
.
mall
.
portal
.
repository
;
package
com
.
macro
.
mall
.
portal
.
repository
;
import
com.macro.mall.portal.domain.MemberBrandAttention
;
import
com.macro.mall.portal.domain.MemberBrandAttention
;
import
org.springframework.data.mongodb.repository.MongoRepository
;
import
java.util.List
;
import
java.util.List
;
...
@@ -9,7 +8,7 @@ import java.util.List;
...
@@ -9,7 +8,7 @@ import java.util.List;
* 会员关注Repository
* 会员关注Repository
* Created by macro on 2018/8/2.
* Created by macro on 2018/8/2.
*/
*/
public
interface
MemberBrandAttentionRepository
extends
MongoRepository
<
MemberBrandAttention
,
String
>
{
public
interface
MemberBrandAttentionRepository
{
MemberBrandAttention
findByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
MemberBrandAttention
findByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
int
deleteByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
int
deleteByMemberIdAndBrandId
(
Long
memberId
,
Long
brandId
);
List
<
MemberBrandAttention
>
findByMemberId
(
Long
memberId
);
List
<
MemberBrandAttention
>
findByMemberId
(
Long
memberId
);
...
...
mall-portal/src/main/java/com/macro/mall/portal/service/MemberAttentionService.java
View file @
40285018
...
@@ -9,18 +9,4 @@ import java.util.List;
...
@@ -9,18 +9,4 @@ import java.util.List;
* Created by macro on 2018/8/2.
* Created by macro on 2018/8/2.
*/
*/
public
interface
MemberAttentionService
{
public
interface
MemberAttentionService
{
/**
* 添加关注
*/
int
add
(
MemberBrandAttention
memberBrandAttention
);
/**
* 取消关注
*/
int
delete
(
Long
memberId
,
Long
brandId
);
/**
* 获取用户关注列表
*/
List
<
MemberBrandAttention
>
list
(
Long
memberId
);
}
}
mall-portal/src/main/java/com/macro/mall/portal/service/impl/MemberAttentionServiceImpl.java
View file @
40285018
...
@@ -14,27 +14,5 @@ import java.util.List;
...
@@ -14,27 +14,5 @@ import java.util.List;
*/
*/
@Service
@Service
public
class
MemberAttentionServiceImpl
implements
MemberAttentionService
{
public
class
MemberAttentionServiceImpl
implements
MemberAttentionService
{
@Autowired
private
MemberBrandAttentionRepository
memberBrandAttentionRepository
;
@Override
public
int
add
(
MemberBrandAttention
memberBrandAttention
)
{
int
count
=
0
;
MemberBrandAttention
findAttention
=
memberBrandAttentionRepository
.
findByMemberIdAndBrandId
(
memberBrandAttention
.
getMemberId
(),
memberBrandAttention
.
getBrandId
());
if
(
findAttention
==
null
)
{
memberBrandAttentionRepository
.
save
(
memberBrandAttention
);
count
=
1
;
}
return
count
;
}
@Override
public
int
delete
(
Long
memberId
,
Long
brandId
)
{
return
memberBrandAttentionRepository
.
deleteByMemberIdAndBrandId
(
memberId
,
brandId
);
}
@Override
public
List
<
MemberBrandAttention
>
list
(
Long
memberId
)
{
return
memberBrandAttentionRepository
.
findByMemberId
(
memberId
);
}
}
}
mall-portal/src/main/resources/application.yml
View file @
40285018
...
@@ -2,9 +2,9 @@ server:
...
@@ -2,9 +2,9 @@ server:
port
:
8086
port
:
8086
spring
:
spring
:
datasource
:
datasource
:
url
:
jdbc:mysql://1
15.29.198.90
:3306/vanke_download?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://1
27.0.0.1
:3306/vanke_download?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username
:
root
username
:
root
password
:
root
password
:
123
druid
:
druid
:
initial-size
:
5
#连接池初始化大小
initial-size
:
5
#连接池初始化大小
min-idle
:
10
#最小空闲连接数
min-idle
:
10
#最小空闲连接数
...
@@ -20,10 +20,10 @@ spring:
...
@@ -20,10 +20,10 @@ spring:
port
:
27017
port
:
27017
database
:
mall-port
database
:
mall-port
redis
:
redis
:
host
:
1
15.29.198.90
# Redis服务器地址
host
:
1
27.0.0.1
# Redis服务器地址
database
:
0
# Redis数据库索引(默认为0)
database
:
0
# Redis数据库索引(默认为0)
port
:
6379
# Redis服务器连接端口
port
:
6379
# Redis服务器连接端口
password
:
"
sixjust"
# Redis服务器连接密码(默认为空)
password
:
# Redis服务器连接密码(默认为空)
jedis
:
jedis
:
pool
:
pool
:
max-active
:
8
# 连接池最大连接数(使用负值表示没有限制)
max-active
:
8
# 连接池最大连接数(使用负值表示没有限制)
...
@@ -31,13 +31,6 @@ spring:
...
@@ -31,13 +31,6 @@ spring:
max-idle
:
8
# 连接池中的最大空闲连接
max-idle
:
8
# 连接池中的最大空闲连接
min-idle
:
0
# 连接池中的最小空闲连接
min-idle
:
0
# 连接池中的最小空闲连接
timeout
:
3000ms
# 连接超时时间(毫秒)
timeout
:
3000ms
# 连接超时时间(毫秒)
rabbitmq
:
host
:
115.29.198.90
port
:
5672
virtual-host
:
my_vhost
username
:
admin
password
:
123456
publisher-confirms
:
true
#如果对异步消息需要回调必须设置为true
jpa
:
jpa
:
hibernate
:
hibernate
:
ddl-auto
:
none
ddl-auto
:
none
...
@@ -102,11 +95,6 @@ redis:
...
@@ -102,11 +95,6 @@ redis:
payOrderId
:
"
portal:payOrderId:"
payOrderId
:
"
portal:payOrderId:"
expire
:
expire
:
authCode
:
90
# 验证码超期时间
authCode
:
90
# 验证码超期时间
# 自定义消息队列名称
rabbitmq
:
queue
:
name
:
cancelOrder
:
cancelOrderQueue
## 微信开放平台
## 微信开放平台
wechat
:
wechat
:
open
:
open
:
...
@@ -121,7 +109,9 @@ aliyun:
...
@@ -121,7 +109,9 @@ aliyun:
accessKeySecret
:
MThxbXZvJC38FxnL6KEr9LDfl0rHjm
# 用户用于加密签名字符串和oss用来验证签名字符串的密钥
accessKeySecret
:
MThxbXZvJC38FxnL6KEr9LDfl0rHjm
# 用户用于加密签名字符串和oss用来验证签名字符串的密钥
bucketName
:
haihaigo
# oss的存储空间
bucketName
:
haihaigo
# oss的存储空间
filepath
:
D:/files/
#本地文件存储路径
filepath
:
D:/files/
#本地文件存储路径
fileUrl
:
192.168.31.127:8401/mall-admin/files/
#本地访问上传文件 如果部署到线上需要通过nginx去配置
fileUrl
:
127.0.0.1:8401/mall-admin/files/
#本地访问上传文件 如果部署到线上需要通过nginx去配置
#filepath: /usr/local/java-file/ #本地文件存储路径
#fileUrl: http://vankefile.jsonpro.cn/files/ #本地访问上传文件 如果部署到线上需要通过nginx去配置
policy
:
policy
:
expire
:
300
# 签名有效期(S)
expire
:
300
# 签名有效期(S)
...
...
mall-registry/pom.xml
View file @
40285018
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugin>
<plugin>
<
!--<
plugin>
<groupId>com.spotify</groupId>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<version>${docker.maven.plugin.version}</version>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</resource>
</resource>
</resources>
</resources>
</configuration>
</configuration>
</plugin>
</plugin>
-->
</plugins>
</plugins>
</build>
</build>
...
...
mall-service/src/main/resources/com/macro/mall/dao/vanke/VankeFileDao.xml
View file @
40285018
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
<if
test=
"typeId != null"
>
<if
test=
"typeId != null"
>
and a.type_id = #{typeId}
and a.type_id = #{typeId}
</if>
</if>
<if
test=
"
queryTime != null and queryTime != ''"
>
<if
test=
"queryTime != null and queryTime != ''"
>
and #{queryTime} = date_format( createtime, '%Y-%m-%d' )
and #{queryTime} = date_format(
a.
createtime, '%Y-%m-%d' )
</if>
</if>
<if
test=
"
adminName != null and adminName != ''"
>
<if
test=
"adminName != null and adminName != ''"
>
and b.name like CONCAT(#{adminName},'%')
and b.name like CONCAT(#{adminName},'%')
</if>
</if>
<if
test=
"isByTime!= null and isByTime == 1"
>
<if
test=
"isByTime!= null and isByTime == 1"
>
...
...
pom.xml
View file @
40285018
...
@@ -33,9 +33,9 @@
...
@@ -33,9 +33,9 @@
<properties>
<properties>
<skipTests>
true
</skipTests>
<skipTests>
true
</skipTests>
<docker.host>
http://115.29.198.90:8375
</docker.host>
<
!-- <
docker.host>http://115.29.198.90:8375</docker.host>
<!-- <docker.host>http://129.204.227.14:2375</docker.host>--
>
<docker.host>http://129.204.227.14:2375</docker.host
>
<docker.maven.plugin.version>
1.1.0
</docker.maven.plugin.version>
<docker.maven.plugin.version>1.1.0</docker.maven.plugin.version>
-->
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<spring-cloud.version>
Greenwich.SR2
</spring-cloud.version>
<spring-cloud.version>
Greenwich.SR2
</spring-cloud.version>
<pagehelper-starter.version>
1.2.10
</pagehelper-starter.version>
<pagehelper-starter.version>
1.2.10
</pagehelper-starter.version>
...
@@ -211,13 +211,13 @@
...
@@ -211,13 +211,13 @@
<artifactId>
logstash-logback-encoder
</artifactId>
<artifactId>
logstash-logback-encoder
</artifactId>
<version>
${logstash-logback.version}
</version>
<version>
${logstash-logback.version}
</version>
</dependency>
</dependency>
<!--集成SpringBoot Admin监控
-->
<!--集成SpringBoot Admin监控
<dependency>
<dependency>
<groupId>de.codecentric</groupId>
<groupId>de.codecentric</groupId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<artifactId>spring-boot-admin-starter-server</artifactId>
<version>${admin-starter-server.version}</version>
<version>${admin-starter-server.version}</version>
</dependency>
</dependency>
-->
<dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<artifactId>
guava
</artifactId>
...
...
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