Skip to content

Commit a67fb5a

Browse files
committed
heroku
1 parent d73bebc commit a67fb5a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/main/java/com/boaglio/casadocodigo/greendogdelivery/GreenDogDeliveryApplication.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
65
import org.springframework.context.annotation.ComponentScan;
76

87
@SpringBootApplication
9-
@EnableEurekaClient
8+
//@EnableEurekaClient
109
@ComponentScan(basePackages = "com.boaglio")
1110
public class GreenDogDeliveryApplication {
1211

src/main/java/com/boaglio/casadocodigo/greendogdelivery/controller/IndexController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public String server(HttpServletRequest request) {
5757
return request.getServerName() + ":" + request.getServerPort();
5858
}
5959

60-
@Value("${mensagem}")
60+
// @Value("${mensagem}")
6161
private String message;
6262

63-
@Value("${debug}")
63+
// @Value("${debug}")
6464
private String debug;
6565

6666
@GetMapping("/oferta")

src/main/resources/application-heroku.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ spring.hateoas.use-hal-as-default-json-media-type=false
2525
# permite acesso ao Actuator
2626
management.security.enabled=false
2727

28+
mensagem=
29+
2830
# profile
2931
# spring.profiles.active=mysql

0 commit comments

Comments
 (0)