2016年10月30日
摘要: 在 javascript 代码中使用 Thymeleaf 模板引擎: <script th:inline="javascript"> $("#content").html( "<select name='status'>"+ " <option value=''>[[#{admin.common.c 阅读全文
posted @ 2016-10-30 11:04 jinweijie0527 阅读(36629) 评论(1) 推荐(0) 编辑
摘要: 在run模式下很快大概30s左右,在debug模式下花了2分钟,debug信息不断输出: Returning cached instance of singleton bean...。网上查了一下,说是可能是断点较多的因素,于是把断点都去掉后又运行了一下,问题解决。 阅读全文
posted @ 2016-10-30 08:19 jinweijie0527 阅读(416) 评论(0) 推荐(0) 编辑
  2016年4月16日
摘要: 使用sudo adduser 创建用户,不存在无法登陆问题,如果使用useradd创建用户xx,需要在新建home目录下建立用户目录。 同时,需要修改用户目录的属主,命令:chown xx:xx 目录 ,还需要进一步修改目录下的文件的属主,特别是.., .Xauthority两个。修改完成即可成功登 阅读全文
posted @ 2016-04-16 20:56 jinweijie0527 阅读(1680) 评论(0) 推荐(0) 编辑
  2015年11月17日
摘要: using System;using System.Collections.Generic;using System.Linq;public class MyClass{ public static void RunSnippet() { var students = new[] { new... 阅读全文
posted @ 2015-11-17 15:37 jinweijie0527 阅读(119) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;public class MyClass{ static void DoStuff(T t,S s) where T:MyClass { Console.WriteLine("T:{0}",t); Con... 阅读全文
posted @ 2015-11-17 10:53 jinweijie0527 阅读(147) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;class Person{ public int Age; public static explicit operator int(Person p) { return p.Age; }}public cl... 阅读全文
posted @ 2015-11-17 10:18 jinweijie0527 阅读(109) 评论(0) 推荐(0) 编辑
  2015年11月16日
摘要: using System;using System.Collections.Generic;sealed class MyData{ double D1,D2,D3; public MyData(double d1,double d2,double d3) { D1 = d1; D2 = d2;... 阅读全文
posted @ 2015-11-16 13:50 jinweijie0527 阅读(150) 评论(0) 推荐(0) 编辑
  2015年11月10日
摘要: using System;using System.Collections.Generic;using System.Text;public class MyClass{ public static void PrintValues(IEnumerable myCollection) { IEn... 阅读全文
posted @ 2015-11-10 15:20 jinweijie0527 阅读(142) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;public class MyClass{ public class Employee:IComparable { public int EmpID; public string YearsOfSvc =... 阅读全文
posted @ 2015-11-10 14:30 jinweijie0527 阅读(165) 评论(0) 推荐(0) 编辑
  2015年11月4日
摘要: 显式实现接口默认不能加修饰符,访问级别默认为public,另外,访问显式实现的接口不能通过对象直接调用,要通过接口对象来调用。 阅读全文
posted @ 2015-11-04 13:49 jinweijie0527 阅读(156) 评论(0) 推荐(0) 编辑