Skip to content

Commit

Permalink
feat: 指定模块统一打包插件 TencentBlueKing#8672
Browse files Browse the repository at this point in the history
  • Loading branch information
fcfang123 committed Jun 15, 2023
1 parent 64fe929 commit 61bdf59
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.AutoConfigureAfter
import org.springframework.boot.autoconfigure.AutoConfigureOrder
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.cloud.client.discovery.composite.CompositeDiscoveryClient
import org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration
import org.springframework.context.annotation.Bean
Expand All @@ -53,6 +54,7 @@ import org.springframework.core.Ordered
@PropertySource("classpath:/common-client.properties")
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE)
@AutoConfigureAfter(ServiceAutoConfiguration::class, LoadBalancerAutoConfiguration::class)
@EnableConfigurationProperties(MutilJarServiceMapConfiguration::class)
class ClientAutoConfiguration {

@Value("\${spring.cloud.consul.discovery.tags:prod}")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.tencent.devops.common.client

import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.context.annotation.Configuration
import org.springframework.boot.context.properties.ConstructorBinding

@Configuration
@ConstructorBinding
@ConfigurationProperties(prefix = "mutiljar.service.map")
class MutilJarServiceMapConfiguration {
val propertiesMap: Map<String, String> = mutableMapOf()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.tencent.devops.common.client.ClientAutoConfiguration,\
com.tencent.devops.common.client.MutilJarServiceMapConfiguration
com.tencent.devops.common.client.ClientAutoConfiguration

0 comments on commit 61bdf59

Please sign in to comment.