
ssm
qq_41624280
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SpringBoot
关于SpringBoot无法创建Bean的特殊情况Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao'#当启动类的名字被修改之前启动后,再次修改启动类,发现某个不需要创建的bean出现报错,则可能是第一次启动时需要创建bean,第二次被修改了,而执行文件target中存在。则需要清除这个文件再启动。...原创 2021-03-18 16:16:15 · 174 阅读 · 0 评论 -
SpringBoot项目无法扫描到xml文件
SpringBoot项目无法扫描到xml文件错误为:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.deyunjiaoyu.sportplay.dao.UserDao.getUserByMessage#由#mybatis:#mapper-locations: classpath:mapper/*.xml#改为:mybatis: mapper-localtions: c原创 2021-03-13 16:55:36 · 776 阅读 · 0 评论 -
SpringBoot整合Thymeleaf
Controller中返回数据和页面的差别1.返回数据是需要添加@ResponseBody,2.返回到页面时,@Controller不可以使用@RestController代替,因为在返回页面的方法上不需要@ResponseBody; @ResponseBody @RequestMapping("/success") public String success(){ //classpath:/templates/success.html return原创 2020-12-08 13:48:58 · 153 阅读 · 0 评论 -
IDEA创建项目碰见的坑
项目中<groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId>相关报错,出现无法解析符号 'RestController’等问题,解决办法如下链接:https://blog.youkuaiyun.com/FungLi_notLove/article/details/104469940...原创 2020-08-11 15:37:35 · 341 阅读 · 0 评论 -
JSP数据传输
getAttribute()和getParameter()异同1.getAttribute()获取servlet之间的信息:在servletOne中设置如下,然后进行跳转到servletTwo中,thCon为web.xml中映射的名称。protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException{ ServletContext原创 2020-07-20 17:50:16 · 455 阅读 · 0 评论 -
Mybatis框架报错
UserMapper.xml相关报错org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession.### The error may exist in com/mybatis/mapper/UserMapper.xml### The error occurred while processing mapper_resultMap[userVoa]_collection[cars]### Cause:原创 2020-07-17 13:55:23 · 183 阅读 · 0 评论 -
Mybatis的SqlMapConfig.xml配置文件相关属性
SqlMapConfig.xml相关属性properties(属性)settings(全局配置参数)typeAliases(类型别名)typeHandlers(类型处理器)objectFactory(对象工厂)plugins(插件)environments(环境集合属性对象)environment(环境子属性对象,包含transactionManager-事务管理和dataSource(数据源))mappers(映射器)1.properties是一个配置元素属性,该元素用于将内部元素原创 2020-07-07 17:04:10 · 112 阅读 · 0 评论 -
Mybatis基础使用
Mybatis基础使用步骤1.创建web项目,在lib中加入需要使用的jar包。2.创建日志文件log4j.properties,做基础日志配置。3.创建配置文件SqlMapConfig.xml,做基础环境配置。4.创建po类User.java5.创建UserMapper.xml文件,编写sql语句6.创建测试类UserTest.java总体框架:1 .创建web项目,在lib中加入需要使用的jar包。2.创建日志文件log4j.properties,做基础日志配置。log4j.ro原创 2020-07-07 15:33:40 · 115 阅读 · 0 评论