| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -143,9 +143,12 @@ public static String htmlDecode(String strSrc) { | |||
| 143 | 143 | * @return string | |
| 144 | 144 | */ | |
| 145 | 145 | public static String delHTMLTag(String htmlStr) { | |
| 146 | - String regexScript = "<script[^>]*?>[\\s\\S]*?<\\/script>"; //定义script的正则表达式 | ||
| 147 | - String regexStyle = "<style[^>]*?>[\\s\\S]*?<\\/style>"; //定义style的正则表达式 | ||
| 148 | - String regexHtml = "<[^>]+>"; //定义HTML标签的正则表达式 | ||
| 146 | + //定义script的正则表达式 | ||
| 147 | + String regexScript = "<script[^>]*?>[\\s\\S]*?<\\/script>"; | ||
| 148 | + //定义style的正则表达式 | ||
| 149 | + String regexStyle = "<style[^>]*?>[\\s\\S]*?<\\/style>"; | ||
| 150 | + //定义HTML标签的正则表达式 | ||
| 151 | + String regexHtml = "<[^>]+>"; | ||
| 149 | 152 | ||
| 150 | 153 | Pattern pScript = Pattern.compile(regexScript, Pattern.CASE_INSENSITIVE); | |
| 151 | 154 | Matcher mScript = pScript.matcher(htmlStr); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -75,6 +75,8 @@ public interface CommonRedisDao { | |||
| 75 | 75 | ||
| 76 | 76 | /** | |
| 77 | 77 | * 获取缓存 | |
| 78 | + * @param key | ||
| 79 | + * @return | ||
| 78 | 80 | */ | |
| 79 | 81 | String getValue(String key); | |
| 80 | 82 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,25 +15,66 @@ | |||
| 15 | 15 | * @author : xiaomo | |
| 16 | 16 | * github: https://github.com/xiaomoinfo | |
| 17 | 17 | * email: xiaomo@xiaomo.info | |
| 18 | - | ||
| 18 | + * <p> | ||
| 19 | 19 | * Date: 2016/11/3 14:33 | |
| 20 | 20 | * Copyright(©) 2015 by xiaomo. | |
| 21 | 21 | **/ | |
| 22 | 22 | ||
| 23 | 23 | public interface TechnologyService { | |
| 24 | 24 | ||
| 25 | + /** | ||
| 26 | + * find all | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 25 | 30 | List<TechnologyModel> findAll(); | |
| 26 | 31 | ||
| 32 | + /** | ||
| 33 | + * find all | ||
| 34 | + * | ||
| 35 | + * @param start | ||
| 36 | + * @param pageSize | ||
| 37 | + * @return | ||
| 38 | + */ | ||
| 27 | 39 | Page<TechnologyModel> findAll(int start, int pageSize); | |
| 28 | 40 | ||
| 41 | + /** | ||
| 42 | + * find | ||
| 43 | + * | ||
| 44 | + * @param id | ||
| 45 | + * @return | ||
| 46 | + */ | ||
| 29 | 47 | TechnologyModel findById(Long id); | |
| 30 | 48 | ||
| 49 | + /** | ||
| 50 | + * find | ||
| 51 | + * | ||
| 52 | + * @param name | ||
| 53 | + * @return | ||
| 54 | + */ | ||
| 31 | 55 | TechnologyModel findByName(String name); | |
| 32 | 56 | ||
| 57 | + /** | ||
| 58 | + * update | ||
| 59 | + * | ||
| 60 | + * @param model | ||
| 61 | + * @return | ||
| 62 | + */ | ||
| 33 | 63 | TechnologyModel update(TechnologyModel model); | |
| 34 | 64 | ||
| 65 | + /** | ||
| 66 | + * add | ||
| 67 | + * | ||
| 68 | + * @param model | ||
| 69 | + * @return | ||
| 70 | + */ | ||
| 35 | 71 | TechnologyModel add(TechnologyModel model); | |
| 36 | 72 | ||
| 73 | + /** | ||
| 74 | + * del | ||
| 75 | + * | ||
| 76 | + * @param id | ||
| 77 | + */ | ||
| 37 | 78 | void del(Long id); | |
| 38 | - | ||
| 79 | + | ||
| 39 | 80 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,24 +15,67 @@ | |||
| 15 | 15 | * @author : xiaomo | |
| 16 | 16 | * github: https://github.com/xiaomoinfo | |
| 17 | 17 | * email: xiaomo@xiaomo.info | |
| 18 | - | ||
| 18 | + * <p> | ||
| 19 | 19 | * Date: 2016/11/3 14:33 | |
| 20 | 20 | * Copyright(©) 2015 by xiaomo. | |
| 21 | 21 | **/ | |
| 22 | 22 | ||
| 23 | 23 | public interface WorksService { | |
| 24 | 24 | ||
| 25 | + /** | ||
| 26 | + * find all | ||
| 27 | + * | ||
| 28 | + * @return | ||
| 29 | + */ | ||
| 25 | 30 | List<WorksModel> findAll(); | |
| 26 | 31 | ||
| 32 | + /** | ||
| 33 | + * find all page | ||
| 34 | + * | ||
| 35 | + * @param start | ||
| 36 | + * @param pageSize | ||
| 37 | + * @return | ||
| 38 | + */ | ||
| 27 | 39 | Page<WorksModel> findAll(int start, int pageSize); | |
| 28 | 40 | ||
| 41 | + /** | ||
| 42 | + * find | ||
| 43 | + * | ||
| 44 | + * @param id | ||
| 45 | + * @return | ||
| 46 | + */ | ||
| 29 | 47 | WorksModel findById(Long id); | |
| 30 | 48 | ||
| 49 | + /** | ||
| 50 | + * find | ||
| 51 | + * | ||
| 52 | + * @param name | ||
| 53 | + * @return | ||
| 54 | + */ | ||
| 31 | 55 | WorksModel findByName(String name); | |
| 32 | 56 | ||
| 57 | + /** | ||
| 58 | + * update | ||
| 59 | + * | ||
| 60 | + * @param model | ||
| 61 | + * @return | ||
| 62 | + */ | ||
| 33 | 63 | WorksModel update(WorksModel model); | |
| 34 | 64 | ||
| 65 | + | ||
| 66 | + /** | ||
| 67 | + * add | ||
| 68 | + * | ||
| 69 | + * @param model | ||
| 70 | + * @return | ||
| 71 | + */ | ||
| 35 | 72 | WorksModel add(WorksModel model); | |
| 36 | 73 | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * del | ||
| 77 | + * | ||
| 78 | + * @param id | ||
| 79 | + */ | ||
| 37 | 80 | void del(Long id); | |
| 38 | 81 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments