`
fatedgar
  • 浏览: 131508 次
  • 性别: Icon_minigender_1
  • 来自: 安徽
社区版块
存档分类
最新评论
文章列表
在spring中设置ProcessEngineConfiguration中的属性 <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="databaseType" value="postgres" /> <property name="dataSource" r ...
前提: springMVC项目已搭建好。 模拟:前台调后台Controller--->service---->groovy文件--->返回或者操作业务 创建处理Groovy的公用类 里面的存放groovy文件的地址可以改变,现在设为:C盘根目录 package com.gybr.util; import groovy.lang.Binding; import groovy.lang.GroovyObject; import groovy.util.GroovyScriptEngine; import groovy.util.ResourceException ...
错误提示: Null value was assigned to a property of primitive type setter of com.entity.hs.HSNotice…… 解决办法: Hibernate中配置的对象,所有的属性类型必须是对象类型。 如: @Column(name="id",length=32) private int id;//id得改成: @Column(name="id",length=32) private Integer id;//id 一般出现的问题解决把 int修改为其包装类型Integer; fl ...
Picasso是Square公司开源的一个Android图形缓存库,它可以实现图片下载和缓存功能。 下载地址如下: http://square.github.io/picasso/ 最基本的用法: Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView); Picasso不仅实现了图片 ...
写出下来代码的输出结果: package com.fatedgar.other; public class Foo { static public int v,r; public int x,y; public Foo(){ x=1; y=2; v=3; r=4; } public void getInfo(){ System.out.println(x+","+y+","+v+","+r); } public static void main(String ...
经典案例: 一个叫department的表,里面只有一个字段name,一共有4条纪录,分别是a,b,c,d,对应四个球对,现在四个球对进行比赛,用一条sql语句显示所有可能的比赛组合. select a.name,b.name from team a, team b where a.name < b.name; 用一条SQL语句查询出每门课都大于80分的学生姓名 name kecheng fenshu 张三 语文 81 张三 数学 75 李四 语文 76 李四 数学 90 王五 语文 81 王五 数学 100 王五 英语 90 select distinct na ...
int型整数转人民币大写 下面的方法中去零那块处理可能会不对…… package com.fatedgar.other; public class RenMingBi { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int n =1023456789; System.out.println(getRMB(n)); } private static final char[] data ...
冒泡排序、选择排序和快速排序: package com.fatedgar.other; public class Sort { public static void main(String[] args) { // TODO Auto-generated method stub int a[] = { 12, 23, 435, 6, 2, 4, 543, 226, 595}; long startB=System.currentTimeMillis(); BubbleSort(a); long endB=System.currentTime ...
FileOutputStream public class FileOutputStream extends OutputStream 构造方法: FileOutputStream(File file) FileOutputStream(File file, boolean append) FileOutputStream(FileDescriptor fdObj) FileOutputStream(String name) FileOutputStream(String name, boolean append) File file=new File("C:\\Tes ...
FileInputStream public class FileInputStream extends InputStream 构造方法: FileInputStream(File file) FileInputStream(String name) FileInputStream(FileDescriptor fdObj) File file=new File("C:\\Test\\Java\\3.txt"); try { //方法一 InputStream fis=new FileInputStream(file); System.out ...
String转int 前提是String的内容得是数字,不然转换会报错的 String str="123456"; //方法一:使用静态方法,不会产生多余的对象,但会抛出异常 int s1=Integer.parseInt(str); //方法二:也会抛异常,但会多产生一个对象, //Integer.valueOf(s) 相当于new Integer(Integer.parseInt(s)) int s2=Integer.valueOf(str).intValue(); int转Sring int str=123456; //方法一:会产生两个S ...
assertion(断言)是jdk1.4才开始支持的新功能,主要在开发和测试时开启。在软件开发中是一种常用的调试方式,很多开发语言中都支持这种机制。在实现中,assertion就是在程序中的一条语句,它对一个boolean表达式进行检查,一个正确程序必须保证这个boolean表达式的值为true;如果该值为false,说明程序已经处于不正确的状态下,assert将给出警告或退出。一般来说,assertion用于保证程序最基本、关键的正确性。assertion检查通常在开发和测试时开启。为了提高性能,在软件发布后,assertion检查通常是关闭的。 测试: (在main方法中写入以下代码 ...
以死亡证明PDF套打为例子: 首先下载一个死亡证明word模板【word文档可以自己按需求做】,用office中word转pdf功能【一般offic默认不带这个的,要下载,附件有,是2007版本的,其他的版本不清楚是否可行】把word文档转换成pdf文档; 用Adobe Acrobat X Pro 打开这个pdf文件; 再这个pdf中制作表单,选择“视图”--“工具”--“表单”,在pdf的右边出现选项卡,选择“编辑”子选项卡,就会把页面中所有域全显示出来了; 可以双击其中的域或是右键属性编辑选中的域;也可以选择右边的“添加新域”来添加新的域,每个域都有对应的名称【背景可以调为白色 ...
  附件中的地图连线.rar是简单的连线html例子。   在百度上把几个坐标按数据库中查询出来的时间顺序直线连接起来 <%@ include file="../../jsp/common/getSession.jsp"%> <%@ include file="../../jsp/common/standAloneJSHeader.jsp" %> <html> <head> <style type="text/css"> body, html,#all ...
http接口: http://api.map.baidu.com/ag/coord/convert?from=0&to=4&x=108.953582&y=34.276165 (gps坐标转换成百度坐标) from的值填的是原坐标;to的值填的是准备转换成的坐标; x填的是经度值;y填的是纬度值。 备注:  gps坐标的type=0 google坐标的type=2 baidu坐标的type=4   下面是java代码 package com.happysys.fatedgar; import java.io.ByteArrayOutputSt ...
Global site tag (gtag.js) - Google Analytics