仿牛客项目
技术架构
- SpringBoot
- Spring、SpringMVC、MyBatis
- Redis、Kafka、ElasticSearch
- SpringSecurity、SpringActuator
琐碎的新东西
Impl实现同一个接口时,实现IOC时对于容器难以判断
1.加@Primary注解2.@Repository时加name,注入时加@Qualifier
request.getMethod .getServletPath .getHeadernames
对应发送HTTP的头文本
response.setContentType(“text/html;charset=utf-8”)
对应返回HTTP的头文本
@RequestParam的一些参数
name=" " 对应前端name,required=" " ,defaultValue=" " 默认值
项目地址
仿牛客项目地址https://gitee.com/Sher-Locked/niuke