SpringMVC 扫描引用第三方包,以及打包的问题

1.首先需要将类包进行扫描,配置如下:
<context:component-scan base-package="com.xx">
</context:component-scan>


2.为了确保包能被扫描到,在打包时,需要对“add directory entries”进行勾选,这样路径也会被打包。

保证以上两点,SpringMVC引用第三方包,便大功告成。



你可能感兴趣的:(springMVC)