- 博客(12)
- 收藏
- 关注
原创 cron表达式
cron表达式星号(*):可用在所有字段中,表示对应时间域的每一个时刻,例如, 在分钟字段时,表示“每分钟”;问号(?):该字符只在日期和星期字段中使用,它通常指定为“无意义的值”,相当于点位符;减号(-):表达一个范围,如在小时字段中使用“10-12”,则表示从10到12点,即10,11,12;逗号(,):表达一个列表值,如在星期字段中使用“MON,WED,FRI”,则表示星期一,星期三和星期五;斜杠(/):x/y表达一个等步长序列,x为起始值,y为增量步长值。如在分钟字段中使用0/15,则表示
2021-07-20 22:00:01
177
原创 springboot邮件
学习内容:springboot邮件学习产出: @Autowired JavaMailSenderImpl mailSender; @Test public void contextLoads() { //邮件设置1:一个简单的邮件 SimpleMailMessage message = new SimpleMailMessage(); message.setSubject("通知-明天来狂神这听课"); m
2021-01-31 22:16:49
124
原创 Java获取当前系统的时间
方法1,public static String getSysYear() { Calendar date = Calendar.getInstance(); String year = String.valueOf(date.get(Calendar.YEAR)); return year;}方法2,public static String getCurrentYear(){ SimpleDateFormat sdf = new S
2021-01-04 14:58:04
96
原创 springboot——shiro 初学(狂神说)
学习内容:springboot——shiro 初学1首先引入依赖 <!-- https://mvnrepository.com/artifact/com.github.theborakompanioni/thymeleaf-extras-shiro --> <dependency> <groupId>com.github.theborakompanioni</groupId> <art
2021-01-03 15:55:18
349
原创 初学webservices服务器端 cxf
学习内容:初学webservices cxf学习产出: <!-- cxf--> <!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-frontend-jaxws --> <dependency> <groupId>org.apache.cxf</groupId> <
2020-12-30 17:21:56
194
1
原创 easyui-datagrid 数据过多,序号显示不全,超过999
问题描述:easyui-datagrid 数据过多,序号显示不全解决方案:添加自适应 /** * Datagrid中行数自适应长度显示 */ $.extend($.fn.datagrid.methods, { fixRownumber : function (jq) { return jq.each(function () { var panel = $(this).datagrid("getPane
2020-12-09 10:50:27
732
原创 富文本Clob(HTML)批量导出word(带图片)
学习内容:需求是批量导出带图片注意想要使用需要获取地址方法ConfigManager.getAttatchmentsPath(),这个方法是我自己项目里的默认地址学习产出:首先需要从数据库中提取clob,转换成string型提供工具方法public String ClobToString(Clob clob){ String reString = ""; try { Reader is = clob.getCharacterStream();// 得到流 Buffere
2020-12-08 18:05:16
647
原创 使用KindEditor
学习内容:使用KindEditor,富文本对应数据库为Clob型,但是可以用String来接收和传输学习产出:html引用主键<textarea id="infovalue" name="infovalue" style="width:96%;height:400px;">${model.infovalue} </textarea>js初始化KindEditor.ready(function(K) { window.editor = K.create('#
2020-12-08 17:46:49
101
原创 对Clob数据进行导出Word,富文本KindEditor写入数据(纯文本)
学习内容:需求让把富文本导出word,这段代码只是实现了纯文本导出学习产出://导出到word public void exportWord(HttpServletRequest request, HttpServletResponse response,String id) throws Exception { try { /*** 查询数据库获得数据 **/ BgsnoticeModel model=service.getInfoById(i
2020-12-08 15:43:25
249
转载 本地图片转base64
学习内容:本地图片转base64代码: public static String ImageToBase64ByLocal(String imgFile) {// 将图片文件转化为字节数组字符串,并对其进行Base64编码处理 InputStream in = null; byte[] data = null; // 读取图片字节数组 try { in = new FileInputStream(imgF
2020-12-08 15:36:19
205
转载 对word模板进行插入图片或者文字,使用poi
学习内容:对word模板进行插入图片或者文字,使用poi代码:maven: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>3.14</version> </dependency>
2020-12-08 15:33:38
694
原创 com.ibatis.common.jdbc.exception.NestedSQLException:
问题描述:com.ibatis.common.jdbc.exception.NestedSQLException:— The error occurred in com/hyjx/framework/ibatis_default.xml.— The error occurred while applying a parameter map.— Check the bgsnotice.update-InlineParameterMap.— Check the statement (update fa
2020-12-03 09:36:19
537
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人