controller就正常加注解使用
application配置通常在server包下
静态资源都放在resources/static 目录下,非静态资源目录无法直接访问得到,也可以手动配置,配置后默认的自动被覆盖失效
外部访问静态资源时,不需要把static的静态文件目录加上
spring:
web:
resources:
static-locations: classpath:/newstatic
推荐阅读:
四、SpringMVC实战:构建高效表述层框架
雪花算法ID和UUID的区别
三、MyBatis实践:提高持久层数据处理效率
二、SpringFramework实战指南
Mybatis分页插件PageHelper
MybatisX 插件逆向工程 Gennerator 自动生成 实体类 Mapper映射
Cookie、Session 和 Token 之间的关系
SpringMVC参数校验
mybatis-plus乐观锁
Mybatis动态语句
行动消除疑虑