springmvcjunit
JUnit4测试报一下错误,哪位大神指点下呢
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.TestContext.getApplicationContext(……继续阅读 »
11年前 (2015-04-23) 1737浏览 0评论
0个赞
servletjspjavascript
本来function是:
function addGoods(goodsId)
{
window.open("ShoppingClServlet?goodsId="+goodsId,"_self"); //如何在原窗口跳转
}
:如果带_self参数的话,触发后页面没有任何变化,还是当前页面。……继续阅读 »
11年前 (2015-04-23) 2958浏览 0评论
0个赞
sql?serverjava
在连接的时候提示了错误信息
通过端口 1344 连接到主机 127.0.0.1 的 TCP/IP 连接失败。错误:“Connection refused: connect。请验证连接属性,并检查 SQL Server 的实例正在主机上运行,且在此端口接受 TCP/IP 连接,还要确保防火墙没有阻止到此端口的 TCP……继续阅读 »
11年前 (2015-04-23) 1816浏览 0评论
0个赞
sshapplicationprototypespringstruts
问题:如下
014-9-27 14:17:04 org.apache.catalina.core.AprLifecycleListener init
信息: The Apache Tomcat Native library which allows optimal perfor……继续阅读 »
11年前 (2015-04-23) 3510浏览 0评论
0个赞
struts2多态
商品的类型有拍卖用和租赁用构成继承关系,页面上想用多态去构造后台对象,后台只声明父类商品对象,怎么控制才能根据传过来的类型去构造不同的子类?
没有人么。。
第一次发贴求助为啥沉的这么彻底。。
传参进行判断呗
引用 3 楼 fengzhidalu 的回复:
传参进行判断呗
后台声明的对……继续阅读 »
11年前 (2015-04-23) 1734浏览 0评论
0个赞
字符串打印
方法:
public ContactCommQueryModel getProcessedNumber() throws
DatabaseContextException, DatabaseException, SQLException {
ContactCommQueryModel model = new ContactC……继续阅读 »
11年前 (2015-04-23) 1499浏览 0评论
0个赞
java.sql.SQLException: Io 异常: The Network Adapter could not establish the conn
ection
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at ……继续阅读 »
11年前 (2015-04-23) 1526浏览 0评论
0个赞
如题,父类怎么可以强转成子类啊???
((JPanel) this.getContentPane()).setOpaque(false);
其中this是一个继承自JFrame的对象、、、
没人啊——————————……继续阅读 »
11年前 (2015-04-23) 1392浏览 0评论
0个赞
hibernatemyeclipse
是学生和课程之间的关联
studnet类
public class Student1 implements java.io.Serializable {
// Fields
private String studentId;
private String studentNumber;
private Strin……继续阅读 »
11年前 (2015-04-23) 1867浏览 0评论
0个赞