提交 2ac056c0 作者: 方治民

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

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