Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
midjourney-proxy
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
徐少华
midjourney-proxy
Commits
5d24f6c5
Commit
5d24f6c5
authored
Sep 07, 2021
by
李传峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3.x,版本修改处理
parent
52791976
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
99 additions
and
11 deletions
+99
-11
deploy.bat
deploy.bat
+2
-1
install.bat
install.bat
+2
-1
deploy-all.bat
pcloud-facade-book/deploy-all.bat
+12
-0
install.bat
pcloud-facade-book/install.bat
+2
-1
pom.xml
pcloud-facade-book/pom.xml
+4
-4
pom.xml
pcloud-service-book/pom.xml
+0
-0
BookApplication.java
...e-book/src/main/java/com/pcloud/book/BookApplication.java
+3
-1
pom.xml
pom.xml
+74
-3
No files found.
deploy.bat
View file @
5d24f6c5
call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U
call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U
-N
@pause
\ No newline at end of file
install.bat
View file @
5d24f6c5
call mvn -Ptest
-Denforcer.skip=true -Dmaven.test.skip=true -U clean install
call mvn -Ptest
clean install -Denforcer.skip=true -Dmaven.test.skip=true -U
call pause
\ No newline at end of file
pcloud-facade-book/deploy-all.bat
0 → 100644
View file @
5d24f6c5
call mvn -Ptest clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U
call mvn -Puat clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.0-RELEASE
call mvn -Pperf clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.1-SNAPSHOT
call mvn -Pprod clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.1-RELEASE
call mvn -Ptsrpd clean source:jar deploy -Denforcer.skip=true -Dmaven.test.skip=true -U -Dreversion=3.1.2-RELEASE
@pause
\ No newline at end of file
pcloud-facade-book/install.bat
View file @
5d24f6c5
call mvn -Ptest
-Denforcer.skip=true -Dmaven.test.skip=true -U clean install
call mvn -Ptest
clean install -Denforcer.skip=true -Dmaven.test.skip=true -U
call pause
\ No newline at end of file
pcloud-facade-book/pom.xml
View file @
5d24f6c5
...
...
@@ -2,10 +2,10 @@
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.pcloud.common
</groupId>
<artifactId>
pcloud-book-parent
</artifactId>
<version>
3.1.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
<groupId>
com.pcloud.common
</groupId>
<artifactId>
pcloud-book-parent
</artifactId>
<version>
3.1.0-SNAPSHOT
</version>
<relativePath>
../pom.xml
</relativePath>
</parent>
<groupId>
com.pcloud.facade
</groupId>
...
...
pcloud-service-book/pom.xml
View file @
5d24f6c5
This diff is collapsed.
Click to expand it.
pcloud-service-book/src/main/java/com/pcloud/book/BookApplication.java
View file @
5d24f6c5
...
...
@@ -7,6 +7,7 @@ import com.pcloud.common.core.constant.MQTopicProducer;
import
com.pcloud.common.core.mq.MQExchangeConstants
;
import
com.pcloud.common.core.mq.MQQueueConstants
;
import
com.pcloud.common.core.mq.RabbitMQFactory
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.mybatis.spring.annotation.MapperScan
;
import
org.springframework.amqp.core.Binding
;
import
org.springframework.amqp.core.BindingBuilder
;
...
...
@@ -17,7 +18,7 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.web.servlet.MultipartConfigFactory
;
import
org.springframework.cloud.netflix.eureka.EnableEurekaClient
;
import
org.springframework.cloud.
netflix.
feign.EnableFeignClients
;
import
org.springframework.cloud.
open
feign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.Configuration
;
...
...
@@ -55,6 +56,7 @@ public class BookApplication {
@Bean
public
Docket
createRestApi
()
{
// 创建API基本信息
return
new
Docket
(
DocumentationType
.
SWAGGER_2
)
.
enable
(
BooleanUtils
.
toBoolean
(
System
.
getProperty
(
"swagger.enable"
,
"false"
)))
.
apiInfo
(
apiInfo
())
.
select
()
.
apis
(
RequestHandlerSelectors
.
basePackage
(
"com.pcloud"
))
// 扫描该包下的所有需要在Swagger中展示的API,@ApiIgnore注解标注的除外
...
...
pom.xml
View file @
5d24f6c5
...
...
@@ -12,9 +12,7 @@
<artifactId>
pcloud-book-parent
</artifactId>
<version>
3.1.0-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<name>
pcloud-book-parent
</name>
<description>
invoker project for Spring Boot
</description>
<modules>
<module>
pcloud-facade-book
</module>
...
...
@@ -23,12 +21,85 @@
<properties>
<reversion>
3.1.0-SNAPSHOT
</reversion>
</properties>
</properties>
<dependencyManagement>
<dependencies>
</dependencies>
</dependencyManagement>
<!-- 全局属性配置 -->
<profiles>
<!-- 开发环境 -->
<profile>
<id>
dev
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
dev
</env>
<wxgroup-sdk.version>
1.1.0-SNAPSHOT
</wxgroup-sdk.version>
<coolq-sdk.version>
1.0-SNAPSHOT
</coolq-sdk.version>
</properties>
</profile>
<!-- 测试环境 -->
<profile>
<id>
test
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
test
</env>
<maven.test.skip>
false
</maven.test.skip>
<wxgroup-sdk.version>
1.0.0-SNAPSHOT
</wxgroup-sdk.version>
<coolq-sdk.version>
1.0-SNAPSHOT
</coolq-sdk.version>
</properties>
</profile>
<!-- UAT -->
<profile>
<id>
uat
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
uat
</env>
<wxgroup-sdk.version>
1.0.0-RELEASE
</wxgroup-sdk.version>
<coolq-sdk.version>
1.0-RELEASE
</coolq-sdk.version>
</properties>
<!-- 设置默认环境 -->
<activation>
<activeByDefault>
true
</activeByDefault>
</activation>
</profile>
<!-- 压测环境 -->
<profile>
<id>
perf
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
perf
</env>
<wxgroup-sdk.version>
1.0.0-SNAPSHOT
</wxgroup-sdk.version>
<coolq-sdk.version>
1.0-SNAPSHOT
</coolq-sdk.version>
</properties>
</profile>
<!-- 生产环境 -->
<profile>
<id>
prod
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
prod
</env>
<wxgroup-sdk.version>
1.1.0-SNAPSHOT
</wxgroup-sdk.version>
<coolq-sdk.version>
1.1.0-RELEASE
</coolq-sdk.version>
</properties>
</profile>
<profile>
<id>
tsrpd
</id>
<properties>
<!-- 部署环境(对应配置文件版本) -->
<env>
tsrpd
</env>
<wxgroup-sdk.version>
1.1.0-SNAPSHOT
</wxgroup-sdk.version>
<coolq-sdk.version>
1.1.0-RELEASE
</coolq-sdk.version>
</properties>
</profile>
</profiles>
</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