下面有童鞋發(fā)的代碼中connection.password和connection.url有誤,運(yùn)行Junit時(shí)會(huì)報(bào)錯(cuò),以下是正確的打開方式~~~
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
未完
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
未完
2016-05-11
思路清晰,十分感謝老師!已完成,自己完善中
彈窗已成功解決
if(confirm("你確信要退出?"))
{
location.href="logout.action";
}
else
{
alert("您已取消退出,可繼續(xù)使用本系統(tǒng)");
}
if(confirm("你確信要退出?"))
{
location.href="logout.action";
}
else
{
alert("您已取消退出,可繼續(xù)使用本系統(tǒng)");
}
2016-05-05
<div id="logout"><a href="logout.action" onclick="firm()">安全退出</a></div>
2016-05-05
想在點(diǎn)擊退出時(shí)有一個(gè)彈窗,但是不管我是按確定還是取消,都是直接退出。要怎么解決
2016-05-05
function firm()
{
if(confirm("你確信要退出?"))
{
location.href="login.jsp";
}
else
{
alert("你按了取消,那就是返回false");
location.href="login_success.jsp";
}
}
{
if(confirm("你確信要退出?"))
{
location.href="login.jsp";
}
else
{
alert("你按了取消,那就是返回false");
location.href="login_success.jsp";
}
}
2016-05-05
三種接收表達(dá)數(shù)據(jù)的方法,它們的區(qū)別有什么嗎? 優(yōu)劣勢?
2016-05-05
從實(shí)際出發(fā),學(xué)號(hào)是有一定規(guī)律的,他的目標(biāo)是滿足學(xué)校使用,所以不必考慮過多人數(shù)。
還有同學(xué)說沒有源碼,笑了,自己打一遍不是挺好的嗎?給你源碼,我保證你不會(huì)仔細(xì)看的。
如果有問題,歡迎私我,學(xué)習(xí)交流
還有同學(xué)說沒有源碼,笑了,自己打一遍不是挺好的嗎?給你源碼,我保證你不會(huì)仔細(xì)看的。
如果有問題,歡迎私我,學(xué)習(xí)交流
2016-05-05
用MyEclipse運(yùn)行項(xiàng)目,不知道為什么發(fā)布的時(shí)候加載的 User Libiraries 都沒有發(fā)布到lib目錄下,導(dǎo)致報(bào)錯(cuò)找不到j(luò)ar包,最終手動(dòng)把jar包都放到項(xiàng)目的 WebRoot -- WEB-INF -- lib目錄下再次發(fā)布項(xiàng)目就成功了。
附上錯(cuò)誤信息:
嚴(yán)重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
附上錯(cuò)誤信息:
嚴(yán)重: Exception starting filter struts2
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
2016-05-05
@萌萌噠提小莫 是將你的代碼直接復(fù)制到testSchemaExport方法下嗎?還需要讀取配置文件不,我直接粘過去控制臺(tái)出現(xiàn)ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.但是表還是生成了,不知道這個(gè)錯(cuò)誤的原因,如果知道麻煩解釋下,謝謝0.0
2016-05-04
老師在struts.xml配置上用的是絕對(duì)路徑,其實(shí)可以用相對(duì)路徑(省事)
<result name="login_success">Users_login_success.jsp</result>
<result name="login_failure">Users_login.jsp</result>
<result name="logout_success">Users_login.jsp</result>
<result name="input">Users_login.jsp</result>
<result name="login_success">Users_login_success.jsp</result>
<result name="login_failure">Users_login.jsp</result>
<result name="logout_success">Users_login.jsp</result>
<result name="input">Users_login.jsp</result>
2016-05-04
很多同學(xué)說包的問題,其實(shí)你們可以換一個(gè)編譯器,idea在包的方面就很簡單了。(弱弱的說一句老師寫的前端,我只要縮小瀏覽器窗口,就出現(xiàn)bug)
2016-05-04