随笔 - 612, 文章 - 0, 评论 - 31, 阅读 - 74万

导航

< 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

09 2014 档案

摘要:情形:两个表,cms_mode是主表,cms_model_field是子表,cms_model_field的model_id字段关联到cms_model的主键。## Source for table cms_model#DROP TABLE IF EXISTS `cms_model`;CREATE ... 阅读全文

posted @ 2014-09-26 09:22 eastson 阅读(2697) 评论(1) 推荐(0) 编辑

摘要:下面的代码在JAVA中是不可以的:import java.util.*;public class Test { public static void main(String[] args) { List str = new ArrayList(); printLis... 阅读全文

posted @ 2014-09-23 10:13 eastson 阅读(697) 评论(0) 推荐(0) 编辑

摘要:1. 打开preferences,找到Java > Editor > Templates。2. 点击"New",新建一个模版:3. 打开Java文件,输入模版名称的前面两个字母xs,然后按ALT+/,就可以看到模版提示: 阅读全文

posted @ 2014-09-20 11:52 eastson 阅读(219) 评论(0) 推荐(0) 编辑

摘要:情形:两个表,my_site和my_site_company,通过主键site_id唯一关联。my_site的主键是自动增加,my_site_company的主键依赖于my_site。## Source for table my_site#DROP TABLE IF EXISTS `my_site`... 阅读全文

posted @ 2014-09-19 16:12 eastson 阅读(557) 评论(0) 推荐(0) 编辑

摘要:进入工作空间目录下的.metadata\.plugins\org.eclipse.wst.server.core子目录,找到servers.xml文件,编辑它,找到start-timeout这一行,把45改成你想要的值,单位是秒。 阅读全文

posted @ 2014-09-04 11:55 eastson 阅读(442) 评论(0) 推荐(0) 编辑

摘要:spring通过在web.xml 中配置ContextLoaderListener 来加载context配置文件,在DispatcherServlet中也可以来加载spring context配置文件,那么这两个有什么区别呢。ContextLoaderListener中加载的context成功后,s... 阅读全文

posted @ 2014-09-03 14:07 eastson 阅读(178) 评论(0) 推荐(0) 编辑

摘要:配置applicationContext.xml时经常会看到:它的作用是隐式地向Spring容器注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、PersistenceAnnotationBeanPost... 阅读全文

posted @ 2014-09-03 11:58 eastson 阅读(135) 评论(0) 推荐(0) 编辑

摘要:Hibernate关联关系映射目录│├─单向关联│ ├─一对一外键单向关联│ ├─一对一主键单向关联│ ├─一对一连接表单向关联│ ├─一对多外键单向关联│ ├─一对多连接表单向关联│ ├─多对一外键单向关联│ ├─多对一连接表单向关联│ └─多对多单向关联└─双向关联 ├─一对一外键双向关联 ├─... 阅读全文

posted @ 2014-09-02 16:06 eastson 阅读(125) 评论(0) 推荐(0) 编辑

摘要:地址:https://github.com/jagregory/shiro-freemarker-tags下载该jar包 或者源代码文件复制到自己工程的lib下或者package中如果使用spring MVC,请看http://www.woxplife.com/articles/473.html如果... 阅读全文

posted @ 2014-09-02 11:49 eastson 阅读(1004) 评论(0) 推荐(0) 编辑

摘要:要在ftl页面中使用contextPath,需要在viewResolver中做如下配置(红色部分): 这样,在页面中使用${rc.contextPath} 就可获得contextPath。注意,这里的rc对应的是org.springframework.web... 阅读全文

posted @ 2014-09-01 10:53 eastson 阅读(1280) 评论(0) 推荐(0) 编辑

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