摘要: 1、@Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上。 2、@Autowired默认按类型装配(这个注解是属业spring的),默认情况下必须要求依赖对象必须存在,如果要允许null 值,可以设置它的required属性为false,如:@ 阅读全文
posted @ 2017-02-12 23:22 Mr_伍先生 阅读(95364) 评论(4) 推荐(11)
摘要: th:attr 任何属性值 多个属性一起设置,用逗号隔开 设置指定属性 复制代码 th:abbr th:accept th:accept-charset th:accesskey th:action th:align th:alt th:archive th:audio th:autocomplete th:axis th:background th:... 阅读全文
posted @ 2017-02-12 23:16 Mr_伍先生 阅读(14352) 评论(0) 推荐(0)
摘要: 1.概念 2.项目实例: 阅读全文
posted @ 2017-02-12 23:02 Mr_伍先生 阅读(46712) 评论(0) 推荐(0)
摘要: 实际效果: 使用 th:text 标签 效果: 阅读全文
posted @ 2017-02-12 22:32 Mr_伍先生 阅读(18674) 评论(0) 推荐(0)
摘要: 1.项目后台系统使用easyui,datagrid 的数据设置为自动适应屏幕,那么对于笔记本的话,就会显得有的小,可以通过设置datagrid属性,进行固定长度的设置 这样设置,每一列都会按照,比例进行显示。 2.另一种方式 这个时候,就是按照设置的具体尺寸进行显示。 阅读全文
posted @ 2017-02-12 15:58 Mr_伍先生 阅读(3285) 评论(0) 推荐(0)