Skip to content

yoa1226/spring-boot-in-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

  1. 使用Spring Boot开发第一个RESTful接口,/students/{id}

  2. 增加web测试与参数校验并封装校验结果

    [
        {
            "field": "school",
            "msg": "must not be blank"
        },
        {
            "field": "age",
            "msg": "must not be null"
        }
    ]
  3. 增加swagger,访问swagger-ui.html

  4. 利用mockito测试没有实现的方法

  5. 热重启

    • 目前项目重启花费是时间4s左右,热重启是1.5s左右
    • 每次修改文件点击 build project,快捷键command+F9
    • 更多关于devtools访问 boot-devtools-restart
  6. banner设置,比如禁用banner

  7. 配置启动环境。

  8. 返回值封装和query param校验

  9. 添加token校验,并根据需求设置web层的用户信息参数

About

Spring Boot in action

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages