- 浏览: 46660 次
- 性别:
- 来自: 广州
最新评论
-
周佩煌:
怎么使用啊,表示不会用啊!
marker显示(openlayers+google) -
kuchaguangjie:
用上了,呵呵!
freemarker遍历map -
tang&qiang:
(新手)能给点说明吗???这样看着头晕的很...
从互联网(路径)将图片转化为byte数组
文章列表
freemarker默认显示是科学计数法
1:加c,如${mail.id?c}
2.加<#setting number_format="0">
3.在freemarker.properties中设置number_format=#
name like '%$name$%' 会有注入漏洞
name like '%' || #name# || '%'
$生成文本化的sql
#生成参数化的sql
mysql: select * from tb where name like concat('%',#name#,'%')
oracle: select * from tb where name like '%'||#name#||'%'
SQL Server:select * from tb where name like '%'+#name#+'%'
<#if bookMap?exists>
<#list bookMap?keys as bookKey>
<#if bookKey_index%2 = 0>
<tr class="odd">
<#else>
<tr class="even">
</#if>
<#assign values = book ...
public void saveItemBatch(final List<Item> itemList, final Long catalogId) {
this.getSqlMapClientTemplate().execute(new SqlMapClientCallback() {
public Object doInSqlMapClient(SqlMapExecutor executor)
throws SQLException {
executor.startBatch();
int batch = 0;
for (Item it ...
maven环境变量
JAVA_HOME:D:\Java\jdk1.6.0_10
MAVEN_HOME:D:\Java\apache-maven-2.2.1
PATH:%MAVEN_HOME%\bin
测试maven是否安装成功
在命令行输入 mvn –version
在Eclipse中配置
选择java->Build Path->Classpath Variables
增加 M2_REPO : D:\repo
M2_REPO所对应的路径对应的maven配置conf\settings.xml中的<localRepository>所设置的路径<localReposi ...
操作配置
<dependency>
<groupId>net.sourceforge.jexcelapi</groupId>
<artifactId>jxl</artifactId>
<version>2.6.10</version>
</dependency>
1、读取Excel文件
public void inputExcel(String filePath) {
InputStream is = null;
try {
is = new FileInputStream(new File(fil ...