1.如果其他项目引入数据源,则当前项目会自动引用数据源配置,要排除他
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class })
2.要在启动类加 mapperscan才能扫描到接口,properties里面的
mybatis.mapper-locations=classpath:mapper/*.xml
是扫描xml的mapper配置文件
3.thymeleaf 怎么引入外部资源 static和template都是thymeleaf默认的路径
引入js <script src="js/xxx"></script>