Skip to content

Commit 0ba5523

Browse files
committed
comment
1 parent 6efd2cf commit 0ba5523

File tree

4 files changed

+95
-6
lines changed

4 files changed

+95
-6
lines changed

core/src/main/java/info/xiaomo/core/untils/HtmlUtil.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

redis/src/main/java/info/xiaomo/redis/dao/CommonRedisDao.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public interface CommonRedisDao {
7575

7676
/**
7777
* 获取缓存
78+
* @param key
79+
* @return
7880
*/
7981
String getValue(String key);
8082

website/src/main/java/info/xiaomo/website/service/TechnologyService.java

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,66 @@
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

2323
public 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
}

website/src/main/java/info/xiaomo/website/service/WorksService.java

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,67 @@
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

2323
public 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
}

0 commit comments

Comments
 (0)