Compare commits

...

3 Commits

Author SHA1 Message Date
f505e9b49e
Merge remote-tracking branch 'origin/master' 2024-11-08 22:20:14 +08:00
f0b33d40ee
多 provider 负载均衡测试 2024-11-08 22:19:54 +08:00
b69b4ee78b
多 provider 负载均衡测试 2024-11-08 22:18:55 +08:00
9 changed files with 95 additions and 1 deletions

10
.idea/UniappTool.xml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="cn.fjdmy.uniapp.UniappProjectDataService">
<option name="generalBasePath" value="$PROJECT_DIR$" />
<option name="manifestPath" value="$PROJECT_DIR$/manifest.json" />
<option name="pagesPath" value="$PROJECT_DIR$/pages.json" />
<option name="scanNum" value="1" />
<option name="type" value="store" />
</component>
</project>

View File

@ -11,6 +11,11 @@
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="http://10.10.10.200:18081/repository/maven-public/" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />

View File

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.10" />
</component>
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">

View File

@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Kafka01Producer" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" nameIsGenerated="true">
<module name="kafka-01-producer" />
<option name="SPRING_BOOT_MAIN_CLASS" value="cn.skcks.study.springcloud.kafka.producer.Kafka01Producer" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="cn.skcks.study.springcloud.kafka.producer.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="NacosConsumer01(8763)" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<module name="consumer" />
<option name="SPRING_BOOT_MAIN_CLASS" value="cn.skcks.study.springcloud.project01.NacosConsumer01" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="cn.skcks.study.springcloud.project01.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@ -0,0 +1,22 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="NacosProvider01-2(8764)" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<additionalParameters>
<param>
<option name="enabled" value="true" />
<option name="name" value="spring.config.location" />
<option name="value" value="classpath:/application2.yml" />
</param>
</additionalParameters>
<module name="provider" />
<option name="SPRING_BOOT_MAIN_CLASS" value="cn.skcks.study.springcloud.project01.NacosProvider01" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="cn.skcks.study.springcloud.project01.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@ -0,0 +1,15 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="NacosProvider01(8762)" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
<module name="provider" />
<option name="SPRING_BOOT_MAIN_CLASS" value="cn.skcks.study.springcloud.project01.NacosProvider01" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="cn.skcks.study.springcloud.project01.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

View File

@ -1,6 +1,5 @@
server:
port: 8763
spring:
application:
name: project-01-consumer

View File

@ -0,0 +1,10 @@
server:
port: 8764
spring:
application:
name: nacos-01-provider
cloud:
nacos:
discovery:
server-addr: 10.10.10.200:8848