Skip to content

A stater of SpringBoot Start,Resolve POST,PUT method resubmit,you can set ttl time and choose need to announce controller method. the function need redis cache the request features,support RedisTemplate/Jedis/Redisson/CacheTemplate.

License

Notifications You must be signed in to change notification settings

acshmily/resubmit-springboot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

resubmit-springboot-starter

Version Reference Reference License

A stater of SpringBoot Start,Resolve POST,PUT method resubmit,you can set ttl time and choose need to announce controller method.

the function need redis cache the request features,support RedisTemplate/Jedis/Redisson/CacheTemplate.

Maven Example

<dependency>
    <groupId>com.github.acshmily</groupId>
    <artifactId>resubmit-spring-boot-starter</artifactId>
    <version>1.2</version>
</dependency>

Gradle Example

implementation 'com.github.acshmily:resubmit-spring-boot-starter:1.2'

How to use?

step1

import resubmit-spring-boot-starter to your project

step2

choose your project redis client match announce,and add your springboot application main class.

RedisClientType EnableAnnounce
RedisTemplate @EnableRedisTemplateReSubmit
Jedis @EnableJedisReSubmit
Redisson @EnableRedissonResubmit
CacheTemplate @EnableCacheTemplateResubmit

Example project you can visit https://github.com/acshmily/resubmit-springboot-tester .

step3

announce your controller

@RequestMapping("")
@RestController
public class IndexController {
    @RequestMapping("")
    @ReSubmit(tts = 60L)
    public String hello(@RequestBody String s) {

        return s;
    }
}

About

A stater of SpringBoot Start,Resolve POST,PUT method resubmit,you can set ttl time and choose need to announce controller method. the function need redis cache the request features,support RedisTemplate/Jedis/Redisson/CacheTemplate.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages