Skip to content
Snippets Groups Projects
Verified Commit 0dcb2aec authored by Martin Weise's avatar Martin Weise
Browse files

Removed the profiles

parent 83080c81
No related branches found
No related tags found
2 merge requests!422Fixed a library issue where the value could not be empty,!421Fixed a library issue where the value could not be empty
# enable local spring profile
spring.profiles.active=local,junit
# disable discovery # disable discovery
spring.cloud.discovery.enabled=false spring.cloud.discovery.enabled=false
......
...@@ -6,7 +6,8 @@ import lombok.Getter; ...@@ -6,7 +6,8 @@ import lombok.Getter;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.*; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate; import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.DefaultUriBuilderFactory; import org.springframework.web.util.DefaultUriBuilderFactory;
...@@ -58,7 +59,6 @@ public class GatewayConfig { ...@@ -58,7 +59,6 @@ public class GatewayConfig {
this.credentialService = credentialService; this.credentialService = credentialService;
} }
@Profile("!junit")
@Bean("brokerRestTemplate") @Bean("brokerRestTemplate")
public RestTemplate brokerRestTemplate() { public RestTemplate brokerRestTemplate() {
final RestTemplate restTemplate = new RestTemplate(); final RestTemplate restTemplate = new RestTemplate();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment