遗忘海岸

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

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

05 2013 档案

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 遗忘海岸 阅读(172) 评论(0) 推荐(0) 编辑

整合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 遗忘海岸 阅读(216) 评论(0) 推荐(0) 编辑

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

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

使用JdbcTemplate需要导入的包
摘要: 阅读全文

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

关于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 遗忘海岸 阅读(4635) 评论(0) 推荐(0) 编辑

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 遗忘海岸 阅读(168) 评论(0) 推荐(0) 编辑

一个错误记录类&一个序列化配置文件读取类
摘要: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 遗忘海岸 阅读(234) 评论(0) 推荐(0) 编辑

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 遗忘海岸 阅读(2696) 评论(0) 推荐(0) 编辑

将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 遗忘海岸 阅读(723) 评论(1) 推荐(1) 编辑

关于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 遗忘海岸 阅读(317) 评论(0) 推荐(0) 编辑

远程连接
摘要:mstsc /admin 阅读全文

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

点击右上角即可分享
微信分享提示