原创 將登陸人ip寫入txt文件

public void WriteIpToTxt(string ip,string username) { string strfile; strfile = "asp.tx

原创 IOC autofac

http://www.cnblogs.com/liping13599168/archive/2011/07/16/2108209.html

原创 Verify the project is selected to be deployed in the Solution Configuration Manager.解決方案

使用VS+Xamarin.Forms運行Android程序是報如下錯誤: The project ProjectName.Droid needs to be deployed before it can be started.  Ver

原创 如何使用Entityframework.Extended

這個插件真的很實用,我們可以使用以下語法來簡化我們的工作,以下僅僅是示例: Deleting <strong>//delete all users where FirstName matches context.Users.Delete(

原创 .net架構設計

很好的博文: http://www.cnblogs.com/yanyangtian/archive/2010/05/24/1742432.html

原创 C#深拷貝

C#的深拷貝,需要自己實現邏輯,目前我沒有發現微軟提供了可供調用的API。微軟只是提供ICloneable接口,此接口只是爲我們提供了一個規範,必須實現object Clone();方法,如下代碼: public class Person

原创 tomcat7.0.59對el取消過濾java關鍵字的設置

omcat 7對EL表達式的語法要求比較嚴格,例如”${enum.colname}”因包含關鍵字enum就會導致解析出錯。 下面是解決辦法: 改tomcat屬性,忽略對EL表達式的關鍵字檢查。修改$CATALINA_BASE/conf

原创 eclipse+weblogic debug模式下會報source not found

如果遇到這個問題時,要考慮是不是jdk是不是沒有引用正確: Java Builder Path -〉Libraries -〉 Add Library -〉 JRE System Library 選擇合適的jdk版本。 其實一般情況遇到這

原创 搭建eureka server 報錯

配置如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w