File tree Expand file tree Collapse file tree 4 files changed +95
-6
lines changed
core/src/main/java/info/xiaomo/core/untils
redis/src/main/java/info/xiaomo/redis/dao
website/src/main/java/info/xiaomo/website/service Expand file tree Collapse file tree 4 files changed +95
-6
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,12 @@ public static String htmlDecode(String strSrc) {
143143 * @return string
144144 */
145145 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 = "<[^>]+>" ;
149152
150153 Pattern pScript = Pattern .compile (regexScript , Pattern .CASE_INSENSITIVE );
151154 Matcher mScript = pScript .matcher (htmlStr );
Original file line number Diff line number Diff line change @@ -75,6 +75,8 @@ public interface CommonRedisDao {
7575
7676 /**
7777 * 获取缓存
78+ * @param key
79+ * @return
7880 */
7981 String getValue (String key );
8082
Original file line number Diff line number Diff line change 1515 * @author : xiaomo
1616 * github: https://github.com/xiaomoinfo
1717 * email: xiaomo@xiaomo.info
18-
18+ * <p>
1919 * Date: 2016/11/3 14:33
2020 * Copyright(©) 2015 by xiaomo.
2121 **/
2222
2323public interface TechnologyService {
2424
25+ /**
26+ * find all
27+ *
28+ * @return
29+ */
2530 List <TechnologyModel > findAll ();
2631
32+ /**
33+ * find all
34+ *
35+ * @param start
36+ * @param pageSize
37+ * @return
38+ */
2739 Page <TechnologyModel > findAll (int start , int pageSize );
2840
41+ /**
42+ * find
43+ *
44+ * @param id
45+ * @return
46+ */
2947 TechnologyModel findById (Long id );
3048
49+ /**
50+ * find
51+ *
52+ * @param name
53+ * @return
54+ */
3155 TechnologyModel findByName (String name );
3256
57+ /**
58+ * update
59+ *
60+ * @param model
61+ * @return
62+ */
3363 TechnologyModel update (TechnologyModel model );
3464
65+ /**
66+ * add
67+ *
68+ * @param model
69+ * @return
70+ */
3571 TechnologyModel add (TechnologyModel model );
3672
73+ /**
74+ * del
75+ *
76+ * @param id
77+ */
3778 void del (Long id );
38-
79+
3980}
Original file line number Diff line number Diff line change 1515 * @author : xiaomo
1616 * github: https://github.com/xiaomoinfo
1717 * email: xiaomo@xiaomo.info
18-
18+ * <p>
1919 * Date: 2016/11/3 14:33
2020 * Copyright(©) 2015 by xiaomo.
2121 **/
2222
2323public interface WorksService {
2424
25+ /**
26+ * find all
27+ *
28+ * @return
29+ */
2530 List <WorksModel > findAll ();
2631
32+ /**
33+ * find all page
34+ *
35+ * @param start
36+ * @param pageSize
37+ * @return
38+ */
2739 Page <WorksModel > findAll (int start , int pageSize );
2840
41+ /**
42+ * find
43+ *
44+ * @param id
45+ * @return
46+ */
2947 WorksModel findById (Long id );
3048
49+ /**
50+ * find
51+ *
52+ * @param name
53+ * @return
54+ */
3155 WorksModel findByName (String name );
3256
57+ /**
58+ * update
59+ *
60+ * @param model
61+ * @return
62+ */
3363 WorksModel update (WorksModel model );
3464
65+
66+ /**
67+ * add
68+ *
69+ * @param model
70+ * @return
71+ */
3572 WorksModel add (WorksModel model );
3673
74+
75+ /**
76+ * del
77+ *
78+ * @param id
79+ */
3780 void del (Long id );
3881}
You can’t perform that action at this time.
0 commit comments