对于技术型的站长来说,代码中的单引号”、双引号””等符号,被WordPress自动转成中文的‘’或者“”真的是没事找事, 打开主题目录下的functions.php文件,复制下方代码粘贴到functions.php文件中即可: //WP英文标点符号自动转换中文的方法 remove_filter(‘the_content’,’wptexturize’);
Access restriction: The type JPEGImageEncoder is not accessible due to
1、当我们在对图片进行操作时,需要使用到 JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); JPEGEncodeParam jep = JPEGCodec.getDefaultJPEGEncodeParam(tag); 这个时候eclipse会报错:Access restriction: The type JPEGImageEncoder is not accessible due to 2、Access restriction: The type BASE64Decoder is not accessible 以上都是
dreamweaver精简版免破解下载安装配置站点
下载dreamweaver8.exe链接: https://pan.baidu.com/s/1bQXPZ8Q3LMDs1210EGFBcA 提取码: 6jy2 默认安装,不要改变路径 Dreamweaver8-chs 序列号: WPD800-59139-91432-25145 WPD800-57931-76932-54523 WPD800-59931-32632-81939 WPD800-55533-57232-82308 WPD800-51139-95632-31627 Dreamweaver8 序列号: WPD800-59931-56632-71626 4、选择编码器 5、在
ssh分页
把查询到的数据封装到一个pagebean中,在根据前台传过来的currentpage实现上一页和下一页的查询把查询到的数据封装到一个pagebean中,在根据前台传过来的currentpage实现上一页和下一页的查询 思维简单化,不要绕圈 得到数据库表中的一条最大id的记录 Spring配置文件 用hibernate 分页时这样配置 <property name=”hibernateProperties”> <props> <prop key=”hibernate.dialect”>org.hibernate.dialect.MySQL5Dialect<
js打开一个新的窗口
var url=”<%=path %>/gonggaoDetail.action?gonggaoId=”+gonggaoId; var n=””; var w=”480px”; var h=”500px”; var s=”resizable:no;help:no;status:no;scroll:yes”; openWin(url,n,w,h,s); 以上win10和google不能用需要换成 window.open(url, “_blank”, “scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes”); w
java小知识点
Ctrl + shift + f MyEclipse格式化代码的快捷键,不过可能与搜狗输入法的快捷键有冲突,需要把搜狗的输入法去掉才能生效。 JS有时写在jsp的body里面会不起作用
Jsp中路径问题
Session Error 在web.xml文件中找到dwr那一段servlet,加上如下代码即可: <init-param> <param-name>crossDomainSessionSecurity</param-name> <param-value>false</param-value> </init-param>
java小知识点
连接jdbc的方式 全局搜索jdbc: Spring和hibernate的版本需一致 Session error 在web.xml文件中配置pwr <serclet></servlet> 字符集乱码影响程序的运行:如页面显示时会发生错误 根据id查找某一条实体记录时,要把实体的属性都设置进去,不要用哪个只添加哪个,不然万一到时候用到别的属性了你会发现属性为空得不到,这样就会很郁闷
java中打印变量
System.out.println(addtime);
java转换日期格式
SimpleDateFormat dateFormat = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”) ; addtime = !addtime.equals(“”)? dateFormat.format(dateFormat.parse(addtime)):”” ;