Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[云原生 - 3. 分布式配置云原生架构] 作业二:为 microsphere-configuration 新增 Nacos Spring 实现 #44

Open
mercyblitz opened this issue Oct 30, 2024 · 2 comments

Comments

@mercyblitz
Copy link
Owner

mercyblitz commented Oct 30, 2024

要求:

  • 基于 Microsphere Spring Context 配置整合 Nacos
    • Maven 依赖
<dependencies>
  <!-- Spring Framework 6.x+ -->
  <dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-spring-context</artifactId>
    <version>2.0.0-SNAPSHOT</version>
  </dependency>

  <!-- Spring Framework 4.x+ -->
  <dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-spring-context</artifactId>
    <version>0.0.3</version>
  </dependency>
</dependencies>

<repositories>
  <repository>
    <id>snapshot</id>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
    <releases>
      <enabled>false</enabled>
    </releases>
    <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
  </repository>
</repositories>
  • 基于 Microsphere Nacos Open API

    • Maven 依赖
      <dependencies>
        <dependency>
        <groupId>io.github.microsphere-projects</groupId>
        <artifactId>microsphere-nacos-openapi</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        </dependency>
      </dependencies>
    
      <repositories>
          <repository>
              <id>snapshot</id>
              <snapshots>
                  <enabled>true</enabled>
              </snapshots>
              <releases>
                  <enabled>false</enabled>
              </releases>
              <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
          </repository>
      </repositories>
  • 功能清单

    • 模块注解 @NacosPropertySource
    • 扩展 PropertySourceExtensionLoader 实现
    • 扩展 `PropertySourceExtensionAttributes 实现

推荐 PR 到 https://github.com/microsphere-projects/microsphere-configuration

@Kurok1
Copy link
Contributor

Kurok1 commented Nov 2, 2024

@mercyblitz mercyblitz changed the title [云原生 - 3. 分布式配置云原生架构] 作业一:为 microsphere-configuration 新增 Nacos Spring 实现 [云原生 - 3. 分布式配置云原生架构] 作业二:为 microsphere-configuration 新增 Nacos Spring 实现 Dec 5, 2024
@walklown
Copy link
Contributor

bugfix:
microsphere-projects/microsphere-nacos#22
作业内容:
microsphere-projects/microsphere-configuration#2
遗留问题:

  • nacos客户端优雅关闭问题,内部httpclient需要关闭,但openapiclient并未调用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants