SSM学习笔记
Spring MVC【入门】就这一篇!
https://www.jianshu.com/p/91a2d0a1e45a
SpringMVC非注解方式和注解方式不能同时使用。注解方式只需要配一句话就行了dispatcher-servlet.xml里
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<!-- 扫描controller下的组件 当我加载配置文件时,到我们指定的包下扫描(读取)java文件,寻找标注注解的地方(接口,类,方法或者其他),进行完成初始化。-->
<context:component-scan base-package="controller"/>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
</beans>
Spring MVC返回ModelAndView,视图解析器找不到jsp
是包引入错误而导致的:
import org.springframework.web.portlet.ModelAndView;——错误的包
import org.springframework.web.servlet.ModelAndView;——正确的包
SpringMVC常用注解@Controller,@Service,@repository,@Component
https://www.cnblogs.com/EasonJim/p/7347534.html
https://www.cnblogs.com/xiaoxi/p/5935009.html
mybatis 官方帮助 下载地址
利用mybatis-generator自动生成代码
https://www.cnblogs.com/yjmyzz/p/4210554.html
mybatis 一对一与一对多collection和association的使用
https://www.cnblogs.com/yansum/p/5819973.html
https://www.cnblogs.com/wmyskxz/p/8853461.html
http://www.mybatis.org/mybatis-3/zh/index.html
Maven项目视频教程
https://www.imooc.com/video/8652
Spring Boot视频教程
http://www.yidiankt.com/course/video/1291(免费)
http://www.chilangedu.com/course/1489582623.html
http://www.chilangedu.com/sectionq/1489582623/9FACB0C53045B96B
spring boot+mybatis整合
https://www.cnblogs.com/peterxiao/p/7779188.html
spring boot打war包
https://blog.csdn.net/github_38151745/article/details/78707664
去掉mapper.xml里的sql黄色背景
https://blog.csdn.net/sinat_29774479/article/details/78541874