英文:
Spring Boot Remote GC
问题
在运行Spring Boot应用程序时,我被告知如果不明确指定当前应用程序将在生产环境下运行,一些端口将被打开,也允许外部的人通过发出请求来启动应用程序所在机器上的GC操作。在基本的Spring Boot程序中是否可以这样做,而不需要设置任何属性?需要采取哪些措施来防止人们在您的应用程序上运行GC操作?
英文:
While running spring boot application I was told that while not precising that the current aplication is going to be working using a production environment, some ports are being opened, also allowing people to perform such actions from the outside of the code, just by making requests to start a GC on the machine where our application sits. Is it possible to do so in the basic spring boot program without any properties set up? What needs to be done take care of it and disallow people running GC on your application?
专注分享java语言的经验与见解,让所有开发者获益!
评论