Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
nexus-test
Project
Project
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
周都
nexus-test
Commits
2fab5b83
Commit
2fab5b83
authored
Jun 27, 2023
by
周都
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parents
Pipeline
#22174
canceled with stages
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
218 additions
and
0 deletions
+218
-0
.gitignore
.gitignore
+39
-0
pom.xml
pom.xml
+127
-0
Application.java
src/main/java/com/firmoo/nexus/Application.java
+17
-0
ProductsController.java
.../java/com/firmoo/nexus/controller/ProductsController.java
+24
-0
application.properties
src/main/resources/application.properties
+11
-0
No files found.
.gitignore
0 → 100644
View file @
2fab5b83
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
\ No newline at end of file
pom.xml
0 → 100644
View file @
2fab5b83
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
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>
<groupId>
com.firmoo
</groupId>
<artifactId>
nexus-test
</artifactId>
<version>
1.0-SNAPSHOT
</version>
<properties>
<maven.compiler.source>
8
</maven.compiler.source>
<maven.compiler.target>
8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<log4j2.safe.version>
2.17.1
</log4j2.safe.version>
<fastjson.version>
1.2.31_noneautotype
</fastjson.version>
<rabbitmq.version>
5.6.0
</rabbitmq.version>
<elasticsearch.version>
7.6.2
</elasticsearch.version>
<lombok.version>
1.18.20
</lombok.version>
<boot.starter.version>
2.3.7.RELEASE
</boot.starter.version>
<guava.version>
28.2-jre
</guava.version>
<hutool.version>
5.5.7
</hutool.version>
<commons.lang3.version>
3.8.1
</commons.lang3.version>
</properties>
<!--配置私有仓库-->
<repositories>
<repository>
<id>
firmoo-nexus
</id>
<name>
My Private Repository
</name>
<url>
https://nexus-test.proxy.fmootech.cn/
</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
${fastjson.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<version>
2.3.7.RELEASE
</version>
</dependency>
<dependency>
<groupId>
com.firmoo
</groupId>
<artifactId>
products-search
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<!--aws es-->
<dependency>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-high-level-client
</artifactId>
<exclusions>
<exclusion>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-client
</artifactId>
</exclusion>
</exclusions>
<version>
${elasticsearch.version}
</version>
</dependency>
<dependency>
<groupId>
org.elasticsearch.client
</groupId>
<artifactId>
elasticsearch-rest-client
</artifactId>
<version>
${elasticsearch.version}
</version>
</dependency>
<dependency>
<groupId>
org.elasticsearch
</groupId>
<artifactId>
elasticsearch
</artifactId>
<version>
${elasticsearch.version}
</version>
<exclusions>
<exclusion>
<artifactId>
jackson-core
</artifactId>
<groupId>
com.fasterxml.jackson.core
</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>
org.projectlombok
</groupId>
<artifactId>
lombok
</artifactId>
<version>
${lombok.version}
</version>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
${boot.starter.version}
</version>
</dependency>
<dependency>
<groupId>
com.google.guava
</groupId>
<artifactId>
guava
</artifactId>
<version>
${guava.version}
</version>
</dependency>
<dependency>
<groupId>
cn.hutool
</groupId>
<artifactId>
hutool-all
</artifactId>
<version>
${hutool.version}
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
${commons.lang3.version}
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
src/main/java/com/firmoo/nexus/Application.java
0 → 100644
View file @
2fab5b83
package
com
.
firmoo
.
nexus
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
java.util.TimeZone
;
@SpringBootApplication
@EnableAsync
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
TimeZone
.
setDefault
(
TimeZone
.
getTimeZone
(
"PST"
));
SpringApplication
.
run
(
Application
.
class
,
args
);
}
}
src/main/java/com/firmoo/nexus/controller/ProductsController.java
0 → 100644
View file @
2fab5b83
package
com
.
firmoo
.
nexus
.
controller
;
import
com.firmoo.products.search.dto.ProductsSearchDto
;
import
com.firmoo.products.search.support.ProductsSearchService
;
import
com.firmoo.products.search.vo.SearchPomVO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@RequestMapping
(
"/products"
)
@RestController
public
class
ProductsController
{
@Autowired
private
ProductsSearchService
productsSearchService
;
@RequestMapping
(
"/"
)
public
Object
index
()
{
ProductsSearchDto
dto
=
new
ProductsSearchDto
();
dto
.
setMasterCategoriesId
(
"1"
);
SearchPomVO
en
=
productsSearchService
.
searchProducts
(
1
,
"en"
,
dto
);
return
en
;
}
}
src/main/resources/application.properties
0 → 100644
View file @
2fab5b83
#这个文件要考到注册中心去
debug
=
true
#端口号
server.port
=
8081
# =========================================== ES =================================
# 线上的商品数据跟生命周期是隔离的
firmoo.elasticsearch.page-host-list
=
${eshostlist:elasticsearch-master.db:9200}
firmoo.elasticsearch.page-username
=
elastic
firmoo.elasticsearch.page-password
=
68c34Juce20dAUJe
firmoo.elasticsearch.page-http
=
http
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