Zdravim
Ucim sa Spring a rad by som vyskusal jednoduchy kod. Moj HomeController vypada takto:
@Controller
public class HomeController {
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
public static void main(String[] args){
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"/SpringInAction/src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml");
Juggler juggler = (Juggler) ctx.getBean("duke");
juggler.perform();
}
}
Moj Spring tree projekt vypada takto:
Problem je, ze mi to stale pise tuto chybu:
Caused by: java.io.FileNotFoundException: class path resource [../WEB-INF/spring/appServlet/servlet-context.xml] cannot be opened because it does not exist
Skusal som tam zadavat rozne sposoby ciest k tomu xml suboru, ale stale rovnaka chyba. Neviete mi niekto poradit ako by som tu path mal zadat aby ten .xml file nasiel?
Dakujem