tweaked setup for mapping of controllers
parent
4dc1625496
commit
c46e0f1969
|
@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
@RequestMapping("/")
|
||||
public class ManagerController {
|
||||
|
||||
@RequestMapping({"/", "/home", "/index"})
|
||||
@RequestMapping({"", "/home", "/index"})
|
||||
public String showHomePage() {
|
||||
return "home";
|
||||
}
|
||||
|
|
|
@ -68,7 +68,10 @@
|
|||
<task:scheduler id="taskScheduler" pool-size="10" />
|
||||
<task:executor id="taskExecutor" pool-size="5" />
|
||||
<task:annotation-driven scheduler="taskScheduler" executor="taskExecutor" />
|
||||
|
||||
<context:component-scan annotation-config="true" base-package="org.mitre" />
|
||||
|
||||
|
||||
<!-- load everything except controllers (those get handled elsewhere) -->
|
||||
<context:component-scan annotation-config="true" base-package="org.mitre">
|
||||
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller" />
|
||||
</context:component-scan>
|
||||
|
||||
</beans>
|
||||
|
|
Loading…
Reference in New Issue