Created
August 13, 2013 08:38
-
-
Save ryosms/6219103 to your computer and use it in GitHub Desktop.
楽天の凶悪なJsonをAndroidAnnotationのRest APIで無理やりなんとかするアレ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jp.sumasu.rakutenapi; | |
import org.springframework.http.MediaType; | |
import org.springframework.http.converter.json.GsonHttpMessageConverter; | |
/** | |
* @author ryosms - ryo.sms at gmail.com | |
*/ | |
public class RakutenGsonConverter extends GsonHttpMessageConverter { | |
@Override | |
public boolean canRead(Class<?> clazz, MediaType mediaType) { | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment