web开发-spring使用

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lineuman/article/details/80891208

如果不去看别人的代码,很难想像出原来还有这种实现方式。
技术的拼接,组件的组装,流程的串联,灵感的实现,这就是编程。

英文解释
Servlet 程序服务
dispatcher 分发,调度

https://www.ibm.com/developerworks/cn/java/j-lo-spring-principle/
虽然说这篇文章老得掉牙,可是我还是推荐自己读一读

@Controller 在方法参数中声明HttpServletRequest request, HttpServletResponse response

spring分层

Controller

Controller中如何接受前端输入?
在Controller 方法中使用形参接收
urlencode-> User user
json -> @RequestBody User user

Service层

Servie
ServiceImpl

DAO层

猜你喜欢

转载自blog.csdn.net/lineuman/article/details/80891208
今日推荐