spring-boot-kibernetes-config-map:在Spring Boot应用程序中使用Kubernetes ConfigMap

时间:2021-04-27 22:38:16
【文件属性】:
文件名称:spring-boot-kibernetes-config-map:在Spring Boot应用程序中使用Kubernetes ConfigMap
文件大小:54KB
文件格式:ZIP
更新时间:2021-04-27 22:38:16
Java 在Spring Boot应用程序中使用Kibernetes Configmap 1. Spring Boot Application属性 首先,让我们向MVC控制器添加简单的启动属性,没什么大不了的: @RestController public class ControllerMVC { @Value ( " ${my.system.property:defaultValue} " ) protected String fromSystem; @RequestMapping ( " /say_hello " ) public String mvcTest () { return " Hello my majesty, your minions from " + fromSystem; } } 并将my.system.prop
【文件预览】:
spring-boot-kibernetes-config-map-master
----.gitignore(268B)
----.mvn()
--------wrapper()
----src()
--------main()
--------test()
----mvnw(6KB)
----deployment.yaml(463B)
----pom.xml(4KB)
----service.yaml(182B)
----mvnw.cmd(5KB)
----README.md(5KB)

网友评论