Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
promotion-gateway
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
promotion
promotion-gateway
Commits
5cb81497
提交
5cb81497
authored
5月 23, 2024
作者:
李秋林
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
初始化代码
上级
58aeab42
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
192 行增加
和
1 行删除
+192
-1
.gitignore
.gitignore
+38
-0
HELP.md
HELP.md
+11
-0
README.md
README.md
+0
-1
pom.xml
pom.xml
+73
-0
WangxiaoluPromotionGatewayApplication.java
...motion/gateway/WangxiaoluPromotionGatewayApplication.java
+15
-0
ProviderController.java
.../com/promotion/gateway/controller/ProviderController.java
+19
-0
application.properties
src/main/resources/application.properties
+5
-0
application.yml
src/main/resources/application.yml
+18
-0
WangxiaoluPromotionGatewayApplicationTests.java
...n/gateway/WangxiaoluPromotionGatewayApplicationTests.java
+13
-0
没有找到文件。
.gitignore
0 → 100644
浏览文件 @
5cb81497
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
mvnw
mvnw.cmd
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
.mvn
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
/logs/**
/LOG_PATH_IS_UNDEFINED
### VS Code ###
.vscode/
\ No newline at end of file
HELP.md
0 → 100644
浏览文件 @
5cb81497
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
*
[
Official Apache Maven documentation
](
https://maven.apache.org/guides/index.html
)
*
[
Spring Boot Maven Plugin Reference Guide
](
https://docs.spring.io/spring-boot/docs/3.2.5/maven-plugin/reference/html/
)
*
[
Create an OCI image
](
https://docs.spring.io/spring-boot/docs/3.2.5/maven-plugin/reference/html/#build-image
)
*
[
Gateway
](
https://docs.spring.io/spring-cloud-gateway/docs/current/reference/html/
)
README.md
deleted
100644 → 0
浏览文件 @
58aeab42
#promotion-gateway
pom.xml
0 → 100644
浏览文件 @
5cb81497
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<modelVersion>
4.0.0
</modelVersion>
<parent>
<groupId>
com.wangxiaolu
</groupId>
<artifactId>
wangxiaolu-promotion-parent
</artifactId>
<version>
0.0.1
</version>
</parent>
<groupId>
com.wangxiaolu
</groupId>
<artifactId>
wangxiaolu-promotion-gateway
</artifactId>
<version>
0.0.1
</version>
<name>
wangxiaolu-promotion-gateway
</name>
<description>
wangxiaolu-promotion-gateway
</description>
<properties>
<spring-cloud.version>
2023.0.1
</spring-cloud.version>
<spring-boot.version>
2.4.2
</spring-boot.version>
<spring-cloud.version>
Finchley.RELEASE
</spring-cloud.version>
<nacos.version>
0.2.2.RELEASE
</nacos.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-dependencies
</artifactId>
<version>
${spring-cloud.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
${spring-boot.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-alibaba-dependencies
</artifactId>
<version>
${nacos.version}
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
<version>
2.4.2
</version>
</dependency>
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-nacos-discovery
</artifactId>
<version>
2021.1
</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
</plugins>
</build>
</project>
src/main/java/com/promotion/gateway/WangxiaoluPromotionGatewayApplication.java
0 → 100644
浏览文件 @
5cb81497
package
com
.
promotion
.
gateway
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
@EnableDiscoveryClient
@SpringBootApplication
public
class
WangxiaoluPromotionGatewayApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
WangxiaoluPromotionGatewayApplication
.
class
,
args
);
}
}
src/main/java/com/promotion/gateway/controller/ProviderController.java
0 → 100644
浏览文件 @
5cb81497
package
com
.
promotion
.
gateway
.
controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author : liqiulin
* @date : 2024-05-23 13
* @describe :
*/
@RestController
public
class
ProviderController
{
@GetMapping
(
"/helloProvider"
)
public
String
helloProvider
(){
return
"你好,我是提供服务者"
;
}
}
\ No newline at end of file
src/main/resources/application.properties
0 → 100644
浏览文件 @
5cb81497
server.port
=
8010
spring.application.name
=
wangxiaolu-promotion-gateway
spring.cloud.nacos.discovery.server-addr
=
42.193.103.153:8848
spring.cloud.nacos.discovery.namespace
=
dd681f3c-0d21-42e5-a96e-14863a7cdcdb
spring.cloud.nacos.discovery.group
=
promotion
src/main/resources/application.yml
0 → 100644
浏览文件 @
5cb81497
server
:
port
:
8010
spring
:
datasource
:
driver-class-name
:
com.mysql.jdbc.Driver
url
:
jdbc:mysql://bj-cdb-j8ppdy86.sql.tencentcdb.com:63569/promotion_dev?autoReconnect=true
username
:
LnNDBM
password
:
fd0%bhD4@oO(%
application
:
name
:
wangxiaolu-promotion-gateway
cloud
:
nacos
:
discovery
:
server-addr
:
42.193.103.153:8848
namespace
:
dd681f3c-0d21-42e5-a96e-14863a7cdcdb
group
:
promotion
src/test/java/com/promotion/gateway/WangxiaoluPromotionGatewayApplicationTests.java
0 → 100644
浏览文件 @
5cb81497
package
com
.
promotion
.
gateway
;
import
org.junit.jupiter.api.Test
;
import
org.springframework.boot.test.context.SpringBootTest
;
@SpringBootTest
class
WangxiaoluPromotionGatewayApplicationTests
{
@Test
void
contextLoads
()
{
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论