摘要: 选择菜单Help->Register->License server,填上http://idea.iteblog.com/key.php,如图所示: 点击Activate,然后就搞定了。 阅读全文
posted @ 2018-03-07 09:15 迷茫王子 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 1.servlet的生命周期? Servlet在创建的时候会调用init()方法,这个方法在整个生命周期只调用一次。servlet由web容器创建:如果在web.xml中配置了<load-on-startup>元素,那么会在web应用启动时自动创建对应的servlet实例,否则servlet将在第一 阅读全文
posted @ 2018-01-14 20:53 迷茫王子 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 1 public static void main(String[] args) { //set集合存储不重复无序的值 2 Set set = new HashSet(); 3 Random random = new Random(); 4 boolean panduan = true; 5 while (tru... 阅读全文
posted @ 2018-01-02 21:19 迷茫王子 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Mybatis动态SQL单一基础类型参数用if标签时,test中应该用 _parameter,如: 阅读全文
posted @ 2017-12-12 22:20 迷茫王子 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 错误提示:Multiple annotations found at this line:- Duplicate local variable path- Duplicate local variable basePath重复变量,因为<%@include%>引进的是代码,把代码包含进来,而新进JS 阅读全文
posted @ 2017-11-18 19:05 迷茫王子 阅读(1323) 评论(0) 推荐(1) 编辑
摘要: A卷 1.选择题 public class Test01 { public static void changeStr(String str) { str = "welcome"; } public static void main(String[] args) { String str = "12 阅读全文
posted @ 2017-11-18 17:58 迷茫王子 阅读(304) 评论(0) 推荐(1) 编辑
摘要: 1.short s1 = 1; s1 = s1 + 1;有什么错? short s1 = 1; s1 += 1;有什么错? short s1 = 1; s1 = s1 + 1;编译时错误。对于short s1 = 1; s1 = s1 + 1; 由于s1+1运算时会自动提升表达式的类型,所以结果是i 阅读全文
posted @ 2017-10-31 22:02 迷茫王子 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1.重载和重写的区别? 重载(Overload):(1)方法重载是让类以统一的方式处理不同类型数据的一种手段。多个同名函数同时存在,具有不同的参数个数/类型。重载Overloading是一个类中多态性的一种表现。 (2)Java的方法重载,就是在类中可以创建多个方法,它们具有相同的名字,但具有不同的 阅读全文
posted @ 2017-10-31 21:59 迷茫王子 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 题目: 数据库 1、 表名:g_cardapply 字段(字段名/类型/长度): g_applyno varchar 8;//申请单号(关键字) g_applydate bigint 8;//申请日期 g_state varchar 2;//申请状态 2、 表名:g_cardapplydetail 阅读全文
posted @ 2017-10-31 21:54 迷茫王子 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 其中/和/*的区别: < url-pattern > / </ url-pattern > 不会匹配到*.jsp,即:*.jsp不会进入spring的 DispatcherServlet类 。< url-pattern > /* </ url-pattern > 会匹配*.jsp,会出现返回jsp视 阅读全文
posted @ 2017-10-20 21:55 迷茫王子 阅读(287) 评论(0) 推荐(0) 编辑