Skip to content

Latest commit

 

History

History
61 lines (53 loc) · 1.85 KB

readme.md

File metadata and controls

61 lines (53 loc) · 1.85 KB

summer

License Build Status

简介

基于Spring MVC的Restful框架,用于快速实现Restful Api接口。

功能

1.0

使用

maven

<mirror>
    <id>nexus</id>
    <mirrorOf>*</mirrorOf>
    <name>Private Nexus</name>
    <url>http://repo.dingdingyisheng.mobi/repository/maven-public</url>
</mirror>
<dependency>
    <groupId>org.smartx</groupId>
    <artifactId>summer-core</artifactId>
    <version>1.0</version>
</dependency>

Demo

@RestController
public class HelloController {

    @GetMapping(value = "/")
    public String summer() {
        return "Hello Summer";
    }

    @VerifyJwtRole(roles = "user,admin", verifyJwt = true)
    @GetMapping(path = "/test-annotation")
    public ResponseEntity<?> version() {
        return new ResponseEntity<>(HttpStatus.OK);
    }

    @DeleteMapping(value = "/api/1")
    public ResponseEntity<?> delete() {
        return new ResponseEntity<>(HttpStatus.OK);
    }
}

具体示例代码可以参考summer-demo项目。

Contributors

Contributors