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

Removed the profiles

parent 83080c81
Branches
Tags
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
spring.cloud.discovery.enabled=false
......
......@@ -6,7 +6,8 @@ import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
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.util.DefaultUriBuilderFactory;
......@@ -58,7 +59,6 @@ public class GatewayConfig {
this.credentialService = credentialService;
}
@Profile("!junit")
@Bean("brokerRestTemplate")
public RestTemplate brokerRestTemplate() {
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