![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaWeb
T-Mac-Paul
描述
展开
-
java.sql.SQLException:Value '0000-00-00' can not be represented as java.sql.Date
解决办法:datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull原创 2017-03-01 16:59:02 · 312 阅读 · 0 评论 -
在Java中直接调用js代码
JDK1.6版添加了新的ScriptEngine类,允许用户直接执行js代码。 在Java中直接调用js代码 不能调用浏览器中定义的js函数,会抛出异常提示ReferenceError: “alert” is not defined。 package com.sinaapp.manjushri; 点击打开链接 import javax.script.Scr转载 2017-03-09 11:22:47 · 276 阅读 · 0 评论