我提供休息服务并测试使用邮递员,然后将数据轻松保存在数据bese中,我正在将Jetty服务器与JNDI一起使用,现在我正在尝试junit test dao以及休息后服务,但是当我运行junit时,它无法命中数据库似乎找不到jndi。
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial