- 浏览: 246397 次
- 性别:
- 来自: 深圳
最新评论
-
江恂泽:
楼主 这家伙会把data 拆分开来 转换成day year形 ...
JsonUtil -
mdsp25xhm:
为何没有列表查询功能?
myBatis DAO封装
文章列表
function stepOne()
{
var formPanel = Ext.create('Ext.form.Panel', {
id:'form',
bodyPadding: 5,
fieldDefaults:
{
labelAlign: 'left',
labelWidth: 100,
anchor: '100%'
},
items: [
{
id:'ra ...
1:Ext.Ajax.request({
url: 'vm!findKeyContent.action',
timeout: 60000,
params: {
keyId: key_id
},
success: function(response){
text = response.responseText;
// process server response here
//var respText = Ext.JSON.dec ...
function getCUInstance()
{
document.getElementById("title1").innerHTML = "My VM Instances";
document.getElementById("content1").innerHTML = "";
Ext.QuickTips.init();
function changeStatus(val)
{
if (val == 0)
{
...
method one:
Ext.onReady(function(){
Ext.create('Ext.Button', {
text: "CLICK",
renderTo: Ext.get("login")/getBody(), //设置显示区域
scale : 'large', //设置按钮大小
handler: function() {
var form = this.up('form').getForm();//获取表单对象
//va ...
Spring管理事务:1:声明式:
使用TransactionProxyFactoryBean:
<bean id="userManager" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager"><ref bean="transactionManage ...
hibernate中lazy的使用:
lazy,延迟加载
Lazy的有效期:只有在session打开的时候才有效;session关闭后lazy就没效了
lazy策略可以用在:
* <class>标签上:可以取值true/false
* 设置<class> ...
单向关联 :当使用单向关联时,由父类管理关联关系,子类无法管理,而这时,父亲知道自己 的儿子,但是,从儿子对象不知道父亲是谁。单向关联时,只指定<one-to-many>
<set name="usageinfos" inverse="true" cascade="none">
<key>
<column name="cloudUser_id" not-null="false" />
...
Ext.onReady(function(){
Ext.get('mb1').on('click', function(e){ //提示信息:确认信息提示
Ext.MessageBox.confirm('Confirm', 'Are you sure you want to do that?', showResult); (标题,提示信息,调用function名字)
});
Ext.get('mb2').on('click', function(e){ //信息提示:弹出输入text,获取输入信息
Ext.MessageBox. ...
public class WebServerListener implements ServletContextListener{
private ServletContext context = null;
public void contextInitialized(ServletContextEvent event)
{
System.out.println("Server started!");
context = event.getServletContext();
...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<!--输出方式:输出到控制台-->
<appender name="CONSOLE" class="org.a ...
public class EncondFilter implements Filter {
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
// Conditionally select and set the character encoding to be used
if (ignore || (request.getCharacterEncoding() == nul ...
@Repository
@Transactional
public class BaseDaoImpl<T, ID extends Serializable, DaoImpl extends BaseDaoImpl<T, String, DaoImpl>>
extends HibernateDaoSupport implements IBaseDAO<T, String> {
@SuppressWarnings("unchecked")
private static final Class T = null;
public L ...
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www. ...
/**
*
*/
package com.huawei.cloud.util.baseDAO;
import java.io.Serializable;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
/**
* @author mickey
*
*/
public interface IBaseDAO<T, ID extends Serializable> ...