我很好奇。下面的代码片段产生一个FrozenError? 神奇的评论# frozen_string_literal: true不存在。
n = nil
s = n.to_s
s.force_encoding('UTF-8')
Run Code Online (Sandbox Code Playgroud) 我想禁止bean中的bean定义覆盖SpringApplication.换句话说,我想要调用的效果GenericApplicationContext.setAllowBeanDefinitionOverriding(false).在Spring Boot中有推荐的方法吗?