摘要: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
阅读全文
摘要: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
阅读全文
摘要:看了胡勇胸的“(干货).NET开发丰富的公共类库助你事半功倍(供下载免费使用)”提到:作为开发人员(苦逼)经常都在为一些常用的操作Baidu,Google,既耗时,又浪费青春,更没时间谈恋爱,苦逼就是这么来的。 挺有感触的,苦逼程序员浪费太多的生命在不必要的事情上了。 另外俺觉得胡胸做的不是很Man
阅读全文
摘要: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...
阅读全文
摘要: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
阅读全文
摘要: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...
阅读全文
摘要:<?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
阅读全文
摘要:加载表结构并保持成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...
阅读全文
摘要:环境:-------------------------xp(sp3),VMWare8.0,ubuntu Server(ubuntu-12.04.2)--也装了下Desktop版,结果出奇的慢WMware部分-------------------------使用WMware的快照功能,可以在搞乱配置后,还原再搞WMware支持3种网络模式,网桥模式:类似虚拟交换机,虚拟机跟宿主机在同一网络级别一样NAT:类似虚拟路由器,使用NAT后可以再WMware的网络配置里制定端口映射,吧mysql 3306端口映射到你宿主机的某一端口上Mysql部分------------------------1.使
阅读全文