| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,9 @@ | |||
| 7 | 7 | import java.util.Random; | |
| 8 | 8 | import java.util.concurrent.Future; | |
| 9 | 9 | ||
| 10 | + /** | ||
| 11 | + * @author : xiaomo | ||
| 12 | + */ | ||
| 10 | 13 | @Component | |
| 11 | 14 | public class AsyncTask { | |
| 12 | 15 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,8 @@ | |||
| 1 | 1 | package info.xiaomo.core.constant; | |
| 2 | 2 | ||
| 3 | + /** | ||
| 4 | + * @author : xiaomo | ||
| 5 | + */ | ||
| 3 | 6 | public class SymbolConst { | |
| 4 | 7 | public static final String JINHAO = "#"; | |
| 5 | 8 | public static final String AND = "&"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,34 +14,29 @@ | |||
| 14 | 14 | * Copyright(©) 2015 by xiaomo. | |
| 15 | 15 | */ | |
| 16 | 16 | public interface LoginField { | |
| 17 | - //qq | ||
| 17 | + | ||
| 18 | 18 | String Q_Q_OPEN_ID = "openid"; | |
| 19 | 19 | String Q_Q_NICKNAME = "nickname"; | |
| 20 | 20 | String Q_Q_PHOTOURL = "figureurl_qq_2"; | |
| 21 | 21 | String Q_Q_GENDER = "gender"; | |
| 22 | - //sina | ||
| 23 | 22 | String SINA_NICK_NAME = "screen_name"; | |
| 24 | 23 | String SINA_OPEN_ID = "id"; | |
| 25 | 24 | String SINA_HEAD_PHOTO = "avatar_large"; | |
| 26 | - //github | ||
| 27 | 25 | String GITHUB_NICK_NAME = "name"; | |
| 28 | 26 | String GITHUB_OPEN_ID = "id"; | |
| 29 | 27 | String GITHUB_HEAD_PHOTO = "avatar_url"; | |
| 30 | 28 | String GITHUB_EMAIL = "email"; | |
| 31 | - //baidu | ||
| 32 | 29 | String BAIDU_NICK_NAME = "name"; | |
| 33 | 30 | String BAIDU_OPEN_ID = "id"; | |
| 34 | 31 | String BAIDU_HEAD_PHOTO = "avatar_url"; | |
| 35 | 32 | String BAIDU_GENDER = ""; | |
| 36 | 33 | ||
| 37 | - //osc | ||
| 38 | 34 | String OSC_NICK_NAME = "name"; | |
| 39 | 35 | String OSC_OPEN_ID = "id"; | |
| 40 | 36 | String OSC_HEAD_PHOTO = "avatar"; | |
| 41 | 37 | String OSC_EMAIL = "email"; | |
| 42 | 38 | String OSC_GENDER = "gender"; | |
| 43 | 39 | ||
| 44 | - //renren | ||
| 45 | 40 | String RENREN_NICK_NAME = "name"; | |
| 46 | 41 | String RENREN_OPEN_ID = "id"; | |
| 47 | 42 | String RENREN_HEAD_PHOTO = "url"; | |
@@ -52,15 +47,15 @@ public interface LoginField { | |||
| 52 | 47 | String ID = "id"; | |
| 53 | 48 | String PASSWORD = "password"; | |
| 54 | 49 | String EMAIL = "email"; | |
| 55 | - String EMAILVERIFY = "emailVerify"; // EmailVerifyConst 是否验证 | ||
| 56 | - String SEX = "gender"; //GenderType 性别 | ||
| 57 | - String BIRTHDAY = "birthday"; //GenderType 性别 | ||
| 58 | - String STATUS = "status"; // UserStatusType 帐号状态 | ||
| 50 | + String EMAILVERIFY = "emailVerify"; | ||
| 51 | + String SEX = "gender"; | ||
| 52 | + String BIRTHDAY = "birthday"; | ||
| 53 | + String STATUS = "status"; | ||
| 59 | 54 | String LAST_LOGIN_TIME = "lastLoginTime"; | |
| 60 | 55 | ||
| 61 | - String TYPE = "type"; //LoginTypeConst 登录类型 | ||
| 56 | + String TYPE = "type"; | ||
| 62 | 57 | String CONTRIBUTION = "contribution"; | |
| 63 | - String AUTHORITY = "authority"; // OauthType 权限类型 | ||
| 58 | + String AUTHORITY = "authority"; | ||
| 64 | 59 | String UPDATETIME = "updateTime"; | |
| 65 | 60 | String CREATETIME = "createTime"; | |
| 66 | 61 | String INDEX = "/index.html"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ | |||
| 21 | 21 | * Copyright(©) 2015 by xiaomo. | |
| 22 | 22 | **/ | |
| 23 | 23 | @Component | |
| 24 | - public class CORSFilter implements Filter { | ||
| 24 | + public class CorsFilter implements Filter { | ||
| 25 | 25 | ||
| 26 | 26 | ||
| 27 | 27 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,9 @@ | |||
| 9 | 9 | import java.text.SimpleDateFormat; | |
| 10 | 10 | import java.util.Date; | |
| 11 | 11 | ||
| 12 | + /** | ||
| 13 | + * @author : xiaomo | ||
| 14 | + */ | ||
| 12 | 15 | public class CustomDateSerializerFilter extends JsonSerializer<Date> { | |
| 13 | 16 | ||
| 14 | 17 | @Override | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,6 +11,9 @@ | |||
| 11 | 11 | import java.util.Date; | |
| 12 | 12 | import java.util.List; | |
| 13 | 13 | ||
| 14 | + /** | ||
| 15 | + * @author : xiaomo | ||
| 16 | + */ | ||
| 14 | 17 | public class ExcelUtil { | |
| 15 | 18 | // | |
| 16 | 19 | // public static void main(String[] args) throws Exception { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ | |||
| 15 | 15 | * 所有方法都是静态方法,不需要生成此类的实例, | |
| 16 | 16 | * 为避免生成此类的实例,构造方法被申明为private类型的。 | |
| 17 | 17 | * | |
| 18 | + * @author : xiaomo | ||
| 18 | 19 | * @since 1.0 | |
| 19 | 20 | */ | |
| 20 | 21 | ||
@@ -596,7 +597,6 @@ public static boolean copyFile(File in, File out) throws Exception { | |||
| 596 | 597 | } | |
| 597 | 598 | } | |
| 598 | 599 | ||
| 599 | - //拷贝文件 | ||
| 600 | 600 | public static boolean copyFile(String infile, String outfile) throws Exception { | |
| 601 | 601 | try { | |
| 602 | 602 | File in = new File(infile); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,6 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | 23 | /** | |
| 24 | 24 | * https 请求 微信为https的请求 | |
| 25 | + * @author : xiaomo | ||
| 25 | 26 | */ | |
| 26 | 27 | public class HttpUtil { | |
| 27 | 28 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,9 @@ | |||
| 4 | 4 | import org.slf4j.LoggerFactory; | |
| 5 | 5 | ||
| 6 | 6 | ||
| 7 | + /** | ||
| 8 | + * @author : xiaomo | ||
| 9 | + */ | ||
| 7 | 10 | public class IDUtil { | |
| 8 | 11 | private static final Logger LOGGER = LoggerFactory.getLogger(IDUtil.class); | |
| 9 | 12 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,9 @@ | |||
| 4 | 4 | import java.io.InputStream; | |
| 5 | 5 | import java.util.Properties; | |
| 6 | 6 | ||
| 7 | + /** | ||
| 8 | + * @author : xiaomo | ||
| 9 | + */ | ||
| 7 | 10 | public class PropsUtil { | |
| 8 | 11 | ||
| 9 | 12 | /** | |
| Back | FazBrowse Home | New Git URL |
0 commit comments