SSM項目遇到的問題(二)

1.找不到mapper

Caused by: java.lang.IllegalArgumentException: Could not resolve resource location pattern [cn/wh3t/mapper/*.xml]: ServletContext resource [/cn/wh3t/mapper/] cannot be resolved to URL because it does not exist at org.springframework.core.io.support.ResourceArrayPropertyEditor.setAsText(ResourceArrayPropertyEditor.java:120) at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:429) at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:402) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:155) at org.springframework.beans.AbstractNestablePropertyAccessor.convertIfNecessary(AbstractNestablePropertyAccessor.java:585) ... 77 morehtml

解決:value中加入classpath,在接後面的路徑java

2.關於pojo、dto、vo和JavaBeans的區別

Difference between DTO, VO, POJO, JavaBeans?spring

What is the difference between a JavaBean and a POJO?bash

What is the difference between POJO (Plain Old Java Object) and DTO (Data Transfer Object)?app

3.html頁面中,iframe引入的頁面會變得特別小

頁面一切正常,height="100%",以後強行height="500px"調整了引入頁面的高度,可是,看起來並很差,內容過多時,一樣也會顯示不全。spa

解決: iframe 根據內容自適應高度-終極解決方案.net

function iframeLoad()
{
    document.getElementById("iframe").height=0;
    document.getElementById("iframe").height=document.getElementById("iframe").contentWindow.document.body.scrollHeight;
}
--------------------- 
做者:不啦草 
來源:CSDN 
原文:https://blog.csdn.net/ye987987/article/details/51832066 
版權聲明:本文爲博主原創文章,轉載請附上博文連接!
複製代碼
相關文章
相關標籤/搜索