提交 2ac056c0 作者: 方治民

feat: 文档更新、示例 Controller 调整

上级 8d84900f
......@@ -16,7 +16,7 @@
<!-- prettier-ignore -->
- [开发规范说明](./doc/workflow.md)
- [技术栈说明](./doc/technique.md)
- [实用技巧](./doc/skill.md)
- 👉 [实用技巧](./doc/skill.md)
---
......
......@@ -27,10 +27,10 @@ import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Validated
@Api(tags = "Hello")
@RequestMapping("/hello/")
@Api(tags = "示例", description = "Example")
@RequestMapping("/example/")
@RestController
public class HelloController {
public class ExampleController {
String text = "😎 Hello World";
......
......@@ -40,7 +40,7 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
*/
@Slf4j
@Profile(value = { "default", "dev", "mock", "test", "preview" })
@Profile("!prod")
@EnableSwagger2WebMvc
@Configuration
@Import(BeanValidatorPluginsConfiguration.class)
......
......@@ -11,7 +11,6 @@
```diff
+ @Resource
+ Redis redis;
+ Object value = redis.get(key);
```
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论