Hi there,
I have a problem with my spring controller/request mapping struture. In web.xml I have defined 2 dispatcher servlets, that map the following request paths:
- Servlet: /pathA/*
- Servlet /pathB/*
All my controllers are defined in the package com.myproject.controllers, so both controllers serving for paths under /pathA/* and /pathB/*. I am doing a component-scan in both of my servlets. How do I need to set the ReuestMapping annotations for the following Controller:
@Controller
public class MyController {
// /pathA
public void action1() {
}
// /pathA/action2
public void action2() {
}
}
I really get confused here, i have tried so many different things, I hope you can help me!
Sincerely, Heinrich