遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页

2013年6月18日 #

dbcp的销毁

摘要: 使用commons-dbcp-1.2.2.jar的DataSource,发现每次动态编译后连接池中的连接不会释放,新的连接池建立有mssql多出一组连接,只有重新启动tomcat或weblogic才可以释放。package aaplan.dbutil;import java.io.InputStream;import java.util.Properties;import java.sql.*;import javax.sql.DataSource;import org.apache.commons.dbcp.BasicDataSourceFactory;public class JdbcUt 阅读全文

posted @ 2013-06-18 15:21 遗忘海岸 阅读(430) 评论(0) 推荐(0)

2013年6月15日 #

weblogic 的一些说明

摘要: 版本问题WebLogic Server 版本: 10.3.1.0只支持jdk1.6, 建立动态web项目时需要选择web项目的2.5, 以及编译环境选择jdk1.6不然发布会报错更改java虚拟机内存:F:\Oracle\Middleware\user_projects\domains\base_domain\bin\setDomainEnv.cmd文件中:set WLS_HOME=%WL_HOME%\serverif "%JAVA_VENDOR%"=="Sun" ( //==Sun 表示使用sun 的jdkset WLS_MEM_ARGS_64BIT= 阅读全文

posted @ 2013-06-15 14:58 遗忘海岸 阅读(214) 评论(0) 推荐(0)

2013年6月6日 #

Eclipse 整后tomcat的webApps目录

摘要: 调试时发现不在tomcat的安装目录,运行下面语句发现,是在eclipse的插件目录的一个web插件目录中 InputStream in = this.getClass().getClassLoader().getResourceAsStream("conn.properties"); Properties properties=new Properties(); properties.load(in); in.close(); System.out.println(properties.getProperty("Driver"));... 阅读全文

posted @ 2013-06-06 07:53 遗忘海岸 阅读(248) 评论(0) 推荐(0)

2013年6月1日 #

关于IDbConnectionFactory

摘要: 需要EF4.0的DbContextusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.Entity;using System.Data.Entity.Infrastructure;using System.Configuration;using System.Data.SqlClient;namespace F.Studio.Util.DB{ public class MyDbContext :DbContext { s... 阅读全文

posted @ 2013-06-01 16:32 遗忘海岸 阅读(1507) 评论(0) 推荐(0)

2013年5月31日 #

mybatis3.2.2的一些测试

摘要: DTO属性(字段)如果是大写开头的如Id,那么mapper(xml)文件中可以使用id,或Id,但是如果DTO属性是小写的如private id, 那么mapper文件中的 #{id}只能是小写的。使用@Transactional 标记类后,类中的方法,将变成一个事务域,如果Service之间有互相引用时,事务同样是按最外层的事务控制为准-------------------有类Aimplpublic class AImpl{@Transactional(propagation=Propagation.REQUIRES) void Add(person p){ dao.Insert(p) Up 阅读全文

posted @ 2013-05-31 13:57 遗忘海岸 阅读(179) 评论(0) 推荐(0)

2013年5月30日 #

整合mybatis3.2.2跟spring3.0.1

摘要: NND不停的报错,哥不停的导各种java ,配置文件改的眼花,NND,java程序员看来也挺崩溃的!<?xml version="1.0" encoding="utf-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/sch 阅读全文

posted @ 2013-05-30 16:59 遗忘海岸 阅读(225) 评论(0) 推荐(0)

2013年5月28日 #

(绝对干货)发布一个升级下载程序(不光免费而且带代码跟详细说明)

摘要: 看了胡勇胸的“(干货).NET开发丰富的公共类库助你事半功倍(供下载免费使用)”提到:作为开发人员(苦逼)经常都在为一些常用的操作Baidu,Google,既耗时,又浪费青春,更没时间谈恋爱,苦逼就是这么来的。 挺有感触的,苦逼程序员浪费太多的生命在不必要的事情上了。 另外俺觉得胡胸做的不是很Man 阅读全文

posted @ 2013-05-28 08:08 遗忘海岸 阅读(2975) 评论(17) 推荐(13)

2013年5月22日 #

使用JdbcTemplate需要导入的包

摘要: 阅读全文

posted @ 2013-05-22 17:11 遗忘海岸 阅读(1849) 评论(0) 推荐(0)

2013年5月21日 #

关于ConcurrentQueue--一个队列缓存的设计

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Collections.Concurrent;namespace PDAJob.PDAService.Service{ public class CacheList<T> { private int MaxSize = 10000; private int ShrinkLen = 2000; private ConcurrentQueue<CacheIte... 阅读全文

posted @ 2013-05-21 16:24 遗忘海岸 阅读(4641) 评论(0) 推荐(0)

2013年5月20日 #

MySQL 的一些语句

摘要: select @@tx_isolationset transaction isolation level read uncommitted read committed repeatable read serializable;start transaction;commit|rollback;FOUND_ROWS() : select ,使用UI工具总是返回1,直接在mysql上的命令行好象又可以;select ROW_COUNT() :update,insert,delete---------------------------------------查看mysql当前连接数C:\Docu 阅读全文

posted @ 2013-05-20 10:31 遗忘海岸 阅读(176) 评论(0) 推荐(0)

2013年5月16日 #

一个错误记录类&一个序列化配置文件读取类

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace PDAJob.PDAService.Service{ using EFModel; using System.Xml.Serialization; using System.Text; using System.IO; using System.Diagnostics; public class ErrLogMgr { public static void L... 阅读全文

posted @ 2013-05-16 14:55 遗忘海岸 阅读(242) 评论(0) 推荐(0)

2013年5月14日 #

Tomcat 7绑定域名

摘要: <?xml version='1.0' encoding='utf-8'?><!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file t 阅读全文

posted @ 2013-05-14 16:05 遗忘海岸 阅读(2701) 评论(0) 推荐(0)

2013年5月10日 #

将List<T>转化成 DataTable--调整可空类型的转化错误

摘要: 加载表结构并保持成XMLView Code string cmdText = @"select * from kb_lable_temp where 1=2"; using (SqlConnection conn = new SqlConnection(DBCtx.ConnStr)) { DataTable dt = new DataTable(); SqlCommand cmd = new SqlCommand(c... 阅读全文

posted @ 2013-05-10 16:54 遗忘海岸 阅读(733) 评论(1) 推荐(1)

2013年5月7日 #

关于ubuntu

摘要: 环境:-------------------------xp(sp3),VMWare8.0,ubuntu Server(ubuntu-12.04.2)--也装了下Desktop版,结果出奇的慢WMware部分-------------------------使用WMware的快照功能,可以在搞乱配置后,还原再搞WMware支持3种网络模式,网桥模式:类似虚拟交换机,虚拟机跟宿主机在同一网络级别一样NAT:类似虚拟路由器,使用NAT后可以再WMware的网络配置里制定端口映射,吧mysql 3306端口映射到你宿主机的某一端口上Mysql部分------------------------1.使 阅读全文

posted @ 2013-05-07 13:07 遗忘海岸 阅读(332) 评论(0) 推荐(0)

2013年5月2日 #

远程连接

摘要: mstsc /admin 阅读全文

posted @ 2013-05-02 10:45 遗忘海岸 阅读(155) 评论(0) 推荐(0)

上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 44 下一页