`
闪客行
  • 浏览: 5328 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

取当前年和月

    博客分类:
  • java
Calendar cal = Calendar.getInstance(); int year = cal.get(Calendar.YEAR); int month = cal.get(Calendar.MONTH )+1; System.out.println(year + " 年 " + month + " 月");

java打包

    博客分类:
  • java
用法: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] file s ... 选项包括:     -c  创建新的归档文件     -t  列出归档目录     -x  解压缩已归档的指定(或所有)文件     -u  更新现有的归档文件     -v  在标准输出中生成详细输出     -f  指定归档文件名     -m  包含指定清单文件中的清单信息     -e  为捆绑到可执行 jar 文件的独立应用程序         指定应用程序入口点     -0  仅存储;不使用任何 ZIP 压缩    ...
int currentRow=page.getCurrentRow()+1; int pageRow=page.getCurrentRow()+page.getPageRow(); sql1="select * from 表"; sql="select * from (select a.*,rownum row_num from "+ "("+sql1+")a)b where b.row_num between "+currentRow+" and "+pageRow ...
import java.util.ResourceBundle; // 从配置文件中获得配置信息 public class Configuration { private static Object lock = new Object(); private static Configuration config = null; private static ResourceBundle rb = null; private static final String CONFIG_FILE = "dbconf"; private Configura ...
import java.io.File; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.hibernate.cfg.Configuration; import org.hibernate.tool.hbm2ddl.SchemaExport; public class Test { static Session session; static Configuration config=null; ...
JS代码如下: <script type="text/javascript"> var checkflag=false; function checkedbox(checkname){ if(checkflag==false){ for(i=0;i<checkname.length;i++){ checkname[i].checked=true; } checkflag=true; }else if(checkflag==true){ ...
Global site tag (gtag.js) - Google Analytics