我有一个 Springboot Rest 应用程序,其中有自动转换 API 和参数的注释。
我有自定义注释,其中包含一些注释,如何将其生成到 OpenAPI 3 中的 swagger 页面?
Ex:
@RestController
Class Controller {
@GetMapping(/test/result/)
@CustomAnnotation(value = "This description should come in swagger")
void method() {
}
}
Run Code Online (Sandbox Code Playgroud) 嗨我有一个String $ string ="insertUnderScore"; 现在我需要在大写字母之前插入_.输出应该是这样的:
$string = "insert_Unser_Score";
Run Code Online (Sandbox Code Playgroud)
有人能帮帮我吗?