Skip to content

Commit 9b58eae

Browse files
committed
activate CfEnv @bean
1 parent 934d057 commit 9b58eae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/orange/innov/xaas/mongodb/DemoApplication.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
import org.springframework.context.annotation.Bean;
6+
7+
import io.pivotal.cfenv.core.CfEnv;
58

69
@SpringBootApplication
710
public class DemoApplication {
811
public static void main(String[] args) {
912
SpringApplication.run(DemoApplication.class, args);
1013
}
14+
15+
@Bean
16+
public CfEnv cfEnv() {
17+
return new CfEnv();
18+
}
1119
}

0 commit comments

Comments
 (0)