Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
documents-project
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
hqzhdj
documents-project
Commits
abd3b85b
Commit
abd3b85b
authored
Oct 18, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置信息
parent
610eaf92
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
15 deletions
+24
-15
cloud-documents-api/pom.xml
+6
-0
cloud-documents-service/pom.xml
+6
-6
cloud-documents-service/src/main/java/com/yizhi/documents/application/DocumentProjectApplication.java
+2
-1
cloud-documents-service/src/main/java/com/yizhi/documents/application/controller/ClassifyComtroller.java
+3
-2
cloud-documents-service/src/main/java/com/yizhi/documents/application/download/DocumentListExcel.java
+4
-3
cloud-documents-service/src/main/resources/bootstrap.properties
+3
-3
No files found.
cloud-documents-api/pom.xml
View file @
abd3b85b
...
...
@@ -38,6 +38,12 @@
<version>
1.0-SNAPSHOT
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.yizhi
</groupId>
<artifactId>
cloud-comment-api
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<scope>
compile
</scope>
</dependency>
</dependencies>
<build>
...
...
cloud-documents-service/pom.xml
View file @
abd3b85b
...
...
@@ -43,12 +43,6 @@
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.yizhi
</groupId>
<artifactId>
cloud-orm
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<scope>
provided
</scope>
</dependency>
<dependency>
<groupId>
com.yizhi
</groupId>
...
...
@@ -109,4 +103,9 @@
</plugins>
</build>
<properties>
<!-- 跳过测试 -->
<skipTests>
true
</skipTests>
</properties>
</project>
\ No newline at end of file
cloud-documents-service/src/main/java/com/yizhi/documents/application/DocumentProjectApplication.java
View file @
abd3b85b
...
...
@@ -2,6 +2,7 @@ package com.yizhi.documents.application;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.ComponentScan
;
...
...
@@ -10,7 +11,7 @@ import org.springframework.context.annotation.ComponentScan;
* @Author: hutao
* @Date: 2019
*/
@SpringBootApplication
@SpringBootApplication
(
exclude
=
{
RabbitAutoConfiguration
.
class
})
@EnableDiscoveryClient
@EnableFeignClients
(
basePackages
=
{
"com.yizhi"
})
@ComponentScan
(
basePackages
=
{
"com.yizhi"
})
...
...
cloud-documents-service/src/main/java/com/yizhi/documents/application/controller/ClassifyComtroller.java
View file @
abd3b85b
...
...
@@ -11,6 +11,7 @@ import com.yizhi.documents.application.vo.documents.SecondClassifyVo;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.List
;
...
...
@@ -26,9 +27,9 @@ import java.util.List;
@RequestMapping
(
"/classify"
)
public
class
ClassifyComtroller
{
@
Autowired
@
Resource
private
ClassifyService
classifyService
;
@
Autowired
@
Resource
private
DocumentService
documentService
;
...
...
cloud-documents-service/src/main/java/com/yizhi/documents/application/download/DocumentListExcel.java
View file @
abd3b85b
...
...
@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.CollectionUtils
;
import
javax.annotation.Resource
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
...
...
@@ -32,10 +33,10 @@ import java.util.Map;
@Component
public
class
DocumentListExcel
extends
AbstractDefaultTask
<
String
,
DocumentParamVo
>
{
@
Autowired
@
Resource
private
DocumentService
documentService
;
@
Autowired
@
Resource
private
ClassifyService
classifyService
;
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DocumentListExcel
.
class
);
...
...
@@ -95,7 +96,7 @@ public class DocumentListExcel extends AbstractDefaultTask<String, DocumentParam
XSSFCellStyle
style
=
workbook
.
createCellStyle
();
style
.
setAlignment
(
HorizontalAlignment
.
CENTER
);
//创建居中格式
style
.
setFillForegroundColor
(
HSSFColor
.
GREY_25_PERCENT
.
index
);
style
.
setFillPattern
(
HSSFCellStyle
.
SOLID_FOREGROUND
);
//
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
XSSFCell
cell
=
null
;
//创建标题行
...
...
cloud-documents-service/src/main/resources/bootstrap.properties
View file @
abd3b85b
server.port
=
35006
spring.application.name
=
documents
ACTIVE
=
${spring.profiles.active}
spring.profiles.active
=
wmy401
spring.profiles.active
=
prod
# nacos
spring.cloud.nacos.config.shared-dataids
=
common-${spring.profiles.active}.properties
spring.cloud.nacos.config.namespace
=
${spring.profiles.active}
spring.cloud.nacos.config.prefix
=
${spring.application.name}
spring.cloud.nacos.config.file-extension
=
properties
spring.cloud.nacos.config.server-addr
=
127.0.0.1:8850
\ No newline at end of file
spring.cloud.nacos.config.server-addr
=
10.23.1.183:8848
\ No newline at end of file
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