- 博客(11)
- 收藏
- 关注
原创 thymeleaf
1、循环 recStat.index获取下标 rec对象 <tr th:each="rec, recStat: ${view.list}"> 2、循环固定次数 <tr th:each="i:${#numbers.sequence(1,15)}" > 3、字符串拼接 <span th:text="${a}+'/'+${b}"> <span ...
2019-05-29 16:54:46
187
原创 根据xml模板设置xml标签属性{{key}} 标记取值
package com.dream.online.util; import java.io.File; import java.io.FileWriter; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; import java.util...
2019-05-20 20:30:02
1551
转载 根据xml模板设置标签text并导出xml文件
import java.io.File; import java.io.FileInputStream; import java.io.FileWriter; import java.util.List; import java.util.Map; import javax.servlet.ServletOutputStream; import javax.servlet.http.Htt...
2019-05-20 20:27:47
808
原创 eclipse 不用刷新 实时更新文件改变
启动eclipse 后, 打开"Window -> Preferences -> General -> Workspace" 参考:https://blog.youkuaiyun.com/mingjie1212/article/details/48525237
2019-03-25 17:40:33
1917
转载 eclipse工具tomcat图标再现方法
从网上下载了一个最新的插件,地址是 http://www.eclipsetotale.com/tomcatPlugin.html 直接放到自己eclipse安装的根目录下的插件plugins文件夹下,然后重新打开eclipse 转载:https://blog.youkuaiyun.com/tang745163962/article/details/80279269 ...
2019-03-25 17:37:07
521
转载 HighCharts点击柱形或饼块加URL或Click事件
我们在做图表的时候,有时候需要在单个数据上加链接或点击事件,是在plotOptions里的events里设置的 plotOptions: { pie: { cursor: 'pointer', events: { click: function(e) { location.href = e.point....
2018-11-21 16:00:07
833
转载 Oracle HQL使用方言 wm_concat
package cn.vant.lims.utils; import org.hibernate.Hibernate; import org.hibernate.dialect.Oracle9Dialect; import org.hibernate.dialect.function.StandardSQLFunction; import org.hibernate.type.St...
2018-10-20 14:17:00
672
转载 hql 返回 map对象
常见的用法是这样的: public void testNativeQuery(){ Query query = entityManager.createNativeQuery("select id, name, age from t_user"); List rows = query.getResultList(); for (Object row : rows) { ...
2018-09-30 10:30:21
2093
原创 required 和 readonly 冲突解决
readonly="readonly" 可用 onfocus="$(this).blur()" 替换
2018-09-07 17:27:20
1834
转载 (摘)springboot 配置文件
一、springboot配置文件 核心配置文件和自定义配置文件。 核心配置文件:是指在resources根目录下的application.properties或application.yml配置文件。 自定义配置文件:为了不破坏核心文件的原生态,但又需要有自定义的配置信息存在,一般情况下会选择自定义配置文件来放这些自定义 信息,这里在resou...
2018-07-24 21:08:26
246
转载 sql 截取字符串
MySQL: 1、LOCATE(substr , str ):返回子串 substr 在字符串 str 中第一次出现的位置,如果字符substr在字符串str中不存在,则返回0; 2、POSITION(substr IN str ):返回子串 substr 在字符串 str 中第一次出现的位置,如果字符substr在字符串str中不存在,与LOCATE函数作用相同; 3、LEFT(str,...
2018-05-31 11:33:25
590
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅