2018.03.08_errorException~18.03.11~18.03.14

[org.springframework.web.context.ContextLoader]-[ERROR] Context initialization failed org.springframework.beans.factory.CannotLoadBeanClassException:

// 我的解决办法
这里写图片描述

// jsp 点击获取当前日期

catch (Exception e) {
throw e;}
limit 0,10

var myDate = new Date();
    alert(myDate);
    //获取当前年
    var year=myDate.getFullYear();
    //获取当前月
    var month=myDate.getMonth()+1;
    //获取当前日
    var date=myDate.getDate();
    var h=myDate.getHours();       //获取当前小时数(0-23)
    alert(h);
    var m=myDate.getMinutes();     //获取当前分钟数(0-59)
    var s=myDate.getSeconds();

    var now=year+'/'+month+"/"+date+" "+h+':'+m+":"+s;
    alert('现在时间='+now);
    document.forms[0].upd_Date.value = now

tomcat启动时间超过默认45秒

https://jingyan.baidu.com/article/e52e3615645fc940c60c51bf.html

oracle,mysql为空判断

is null ,is not null

Struts 执行sql 查询语句取单值

    StringBuffer hql = new StringBuffer();
            hql.append("    SELECT                                                                      \n");
            hql.append("        c.CONTENT_1                                 \n");
            hql.append("    FROM                                                \n");
            hql.append("        CODETBL c,NINUSHI n                         \n");
            hql.append("    WHERE                                            \n");
            hql.append("        c.CD_KBN = 'K0400' AND c.CD = '"+   soko_Cd +"' \n");
            hql.append("    AND                                                 \n");
            hql.append("        n.NNS_CD='"+    nns_Cd  +"'                     \n");

            Query query = session.createSQLQuery(hql.toString());
            // 执行
            String content_1_C = ((String) query.uniqueResult());

去除字符串中的字符(简单方法,缺少复杂判断)

String nyshk_Date = nyshk_Date.replace("/", "");

猜你喜欢

转载自blog.csdn.net/yw2567/article/details/79479078