使用hibernate quickstarexample 出现hibernate.cfg.xml not found
使用quickstart例子,启动
http://localhost:8080/quickstart/servlet/net.sf.hibernate.examples.quickstart.TestServlet
出现以下错误:
javax.servlet.ServletException: /hibernate.cfg.xml not found
hibernate.cfg.xml 文件在quickstart\WEB-INF\classes 下,在网上看到有下面的做法:
put the classpath to the cfg.xml in CLASSPATH
有人证明是可行的,可是,偶有些不明白呢,是指在cfg.xml文件中加入
classpath吗?
先谢谢各位热心的大侠了