- 浏览: 59904 次
- 性别:
- 来自: 深圳
最新评论
文章列表
public class MongoDBDataClean {
public static void main(String[] args) throws Exception {
TimerTask task = new TimerTask(){
@Override
public void run() {
clearMongoData();
}
private void clearMongoData() {
SimpleDateFormat sdf = new SimpleDateForma ...
Class.forName("com.ibm.db2.DB2Driver");String url = "jdbc:db2://localhost:port/databaseName";DriverManager.getConnection(url,username,password);
SimpleDateFormat dayFormatter = new SimpleDateFormat("yyyy-MM-dd-");Calendar lastDay = new GregorianCalendar();lastDay.add(Ca ...
关于网银的一些认识,一般有个人网银和企业网银,功能很类似,企业网银更复杂些。
首先网银登陆的过程中一般会做些什么事情呢
首先会有用户信息密码验证,一次性密码(OTP)验证,然后再
1.获得用户的一些基本信息, ...
First ,create a properies file for config file,
EmailSMTP=mail.*.com
FromAddress=email@*.com
EmailUser=email
EmailPassWord=email
ToAddress=tom@*.com;ray@*.com
FileName=H://*.txt;H://*.txt
ShowFileName=*.txt
then the java code should be:
package com.test;
import java.io.BufferedInputStrea ...
转自:http://hi.baidu.com/nieweiguo/blog/item/b92e369bf0c882b6c8eaf476.html
步骤如下:首先在ireprot里做好所需要报表,保存 好
ireport里面的字段就是你要传入到jasper里的list所封装的model的字段,一一对应即可, 在ireport里面要设置报表字段(如果要传参数到报表里,则要在ireport设置报表参数) ,做好报表后,就在后台ACTION(自己可以在JSP,SERVLET 封装等...)封装数据了,我做了个测试片段如下:List list=new ArrayList() ...
First of all, we should click a button or some pic to trigger the action of exporting,here I used a button:
<input type="button" value="Export" onclick="export()" class="buttoncss"/>
Then the export function should like:
window.location.href="*.do ...
REM **********
REM Modify the values below to match your configuration
REM **********
set v_mysqlHost=192.168.*.130
set v_mysqlPort=3306
set v_mysqlUser=admin
set v_mysqlPassword=111111
set v_mysqlDatabase= testBase
REM if the mysql sever deployed on linux system
set v_storePathLinux=/tmp
s ...
关于JAVA,方向在哪?
1、主流框架要掌握如(ssh),没事可以了解下jsf,shale,seam,richface,jpa 框架。 2、对于各种缓存的分析利弊,能灵活运用 如memcache,Oscache, 内存数据库timesken,嵌入数据库b-db等。。。。。 3、向网络、通信方面发展,比如说写个类似于mina的框架,写写类似于游戏服务端的东西,自己可以写协议,支持高并发。 4、掌握几种主流数据库,oracle,sql ,mysql等,可以书写复杂的存储过程,mysql之类的分布、集群掌握一下。 5、会用轻量级别的SOA框架,如serviceMix,Mule等。。。JMS消息队列需 ...
1.The exception is:
Status: 500 Internal Server Error no such file to load -- sqlite3
solution: need to download sqlite3.rar ,then uncompressed at the ../ruby/bin folder,then gem install sqlite3-ruby-1.2.3-mswin32.gem
2.undefined method `render_text' for # RAILS_ROOT
solution: cha ...
define a object in jsp:
<object classid="clsiD:CAFEEFAC-0015-0000-0000-ABCDEFFEDCBA" width=1000 height=750
codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-Windows-i586.cab#Version=1,5,0,0">
<param name="code" value="com.test.class">
...
When u want to test the swing , java console can show some info by system.out.print.
Go to start - > Control panel, then select Java control panel and open it.
Select Advanced option,then u can see Java console, select "Show console" then press "OK" button
by the way,a ...
Listeners that needed when we want to deal with some event,
addWindowListener(new WindowAdapter())
public abstract class WindowAdapter
implements WindowListener, WindowStateListener, WindowFocusListener
{
/**
* Invoked when a window has been opened.
*/
public void window ...
var root = new Ext.tree.TreeNode({
id:"root",
text:"Sample"
});
var ITDep = new Ext.tree.TreeNode({id:"c1",text:"IT Dep",href:"http://www.sina.com",hrefTarget:"_blank",leaf:false});
...
code:
Set<Pattern> sortedPatterns = new TreeSet<Pattern>();
for(Pattern pattern : project.getPatterns()){
sortedPatterns.add(pattern);
}
project.setPatterns(sortedPatterns);
Then the Pattern need to implements Comparable interface
then finished your method compar ...
First the ddl language of the table used with foreign key as :
CREATE TABLE `t_operation_log` (
`id` BIGINT(24) NOT NULL AUTO_INCREMENT,
`resourceId` BIGINT(24) NOT NULL,
`systemlogId` BIGINT(24) NOT NULL,
`operationTime` DATE DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `resourceId` (`re ...