Skip to content

Instantly share code, notes, and snippets.

View chocotan's full-sized avatar
:atom:
Working from home

小羽 chocotan

:atom:
Working from home
  • Shanghai, China
View GitHub Profile
@Autowired
@Output(OUTPUT)
private MessageChannel messageChannel;
@Value("${message}")
private String message;
@Description("Post new reservations using Spring Cloud Stream")
@RequestMapping(method = POST)
public void acceptNewReservations(@RequestBody Reservation r) {
@chocotan
chocotan / serverspeeder-all.sh
Created July 23, 2016 04:53 — forked from rptec/serverspeeder-all.sh
锐速破解版一键安装。
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
export PATH
#定义变量
#授权文件自动生成url
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php
#安装包下载地址
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz
@chocotan
chocotan / gist:df9c0ebe7c4b17c1de638eb21b062ec2
Created February 3, 2017 09:37 — forked from aeisele/gist:2845397
use spring security oauth2 resource owner password scheme as authentication provider
public class ResourceOwnerAuthenticationProvider implements AuthenticationProvider {
private String apiEndpoint;
private String clientId;
private String accessTokenUri;
private String clientSecret;
private List<String> scope;
@Override