![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MVC
张国亮
CSDN乐知学院***
展开
-
登陆界面的数据保存回显的操作
package com.example.day02_file; import java.util.Map; import com.example.lession02_file.service.FileService; import android.app.Activity; import android.os.Bundle; import android.text.TextUtils; im原创 2013-05-29 13:55:30 · 1505 阅读 · 0 评论 -
object references an unsaved transient instance - save the transient instance before flushing
异常1:not-null property references a null or transient value 解决方法:将“一对多”关系中的“一”方,not-null设置为false (参考资料:http://www.thearcmind.com/confluence/pages/viewpage.action?pageId=212) 异常2:org.hibernate.Tran转载 2013-05-15 22:57:42 · 565 阅读 · 0 评论 -
实现业务系统中的用户权限管理--实现篇
在设计篇中,我们已经为大家阐述了有关权限管理系统的数据库设计,在本篇中,我们将重点放在其实现代码部分。为了让你能够更直接更有效的看到全部动作的代码,我们使用“动作分解列表”的方式来陈述每个动作以及相关资源。 实现权限管理功能的动作 动作分解 动作名 相关表名 操作集类型 (S,U,I,D,SQL) 表单 模组 字符资源 是否分页? 返回提示? 权限检测原创 2014-06-17 14:37:52 · 1190 阅读 · 0 评论 -
浅谈MySQL中优化sql语句查询常用的30种方法
1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中使用!=或 3.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在num上设置默认值0,确保表中原创 2017-08-29 11:24:12 · 326 阅读 · 0 评论