01 2021 档案

摘要:###一、整合JTA(atomikos) 通过maven坐标引入JTA atomikos <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jta-atomikos</ar 阅读全文
posted @ 2021-01-29 19:39 离人怎挽_wdj 阅读(577) 评论(0) 推荐(0) 编辑
摘要:为了增强Mybatis的功能性和易用性,有两种比较常用的方案 Mybatis Genenrator Mybatis Plus ###一、整合Mybatis 第一步:引入maven依赖包,包括mybatis相关依赖包和mysql驱动包。 <dependency> <groupId>org.mybati 阅读全文
posted @ 2021-01-28 18:45 离人怎挽_wdj 阅读(183) 评论(0) 推荐(0) 编辑
摘要:###一、主流的多数据源支持方式 将数据源对象作为参数,传递到调用方法内部,这种方式增加额外的编码。如:JDBC多数据源添加方式 将Repository操作接口分包存放,Spring扫描不同的包,自动注入不同的数据源。这种方式实现简单,也是一种“约定大于配置”思想的典型应用。本文将以这种方式实现JP 阅读全文
posted @ 2021-01-27 20:24 离人怎挽_wdj 阅读(610) 评论(0) 推荐(0) 编辑
摘要:###一、 Sping Data JPA 简介 Spring Data JPA 是 Spring 基于 ORM 框架、JPA 规范的基础上封装的一套 JPA 应用框架,底层使用了 Hibernate 的 JPA 技术实现,可使开发者用极简的代码即可实现对数据的访问和操作。它提供了包括增删改查等在内的 阅读全文
posted @ 2021-01-27 17:31 离人怎挽_wdj 阅读(140) 评论(0) 推荐(0) 编辑
摘要:git init git add . git commit -m '添加文件' git push -u https://github.com/weidaijie1/SpringBootStudy.git master 阅读全文
posted @ 2021-01-27 17:11 离人怎挽_wdj 阅读(55) 评论(0) 推荐(0) 编辑
摘要:解决前台传入参数后台数据null @RequestMapping(method = RequestMethod.POST,value = "/insert") public void insert(@RequestBody User user){ userService.insert(user); 阅读全文
posted @ 2021-01-27 10:34 离人怎挽_wdj 阅读(318) 评论(0) 推荐(0) 编辑
摘要:报错信息如下 org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class 阅读全文
posted @ 2021-01-26 19:13 离人怎挽_wdj 阅读(3772) 评论(0) 推荐(0) 编辑
摘要:遇到的问题 解决方案: 参考链接:https://blog.csdn.net/m0_37876935/article/details/105464081 阅读全文
posted @ 2021-01-26 17:06 离人怎挽_wdj 阅读(1455) 评论(0) 推荐(0) 编辑
摘要:####1、springboot jdbc操作数据库 最简单方式 pom.xml添加依赖 dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> 阅读全文
posted @ 2021-01-25 19:23 离人怎挽_wdj 阅读(49) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2021-01-25 17:09 离人怎挽_wdj 阅读(0) 评论(0) 推荐(0) 编辑
摘要:1、springboot jdbc操作数据库 最简单方式 pom.xml添加依赖 dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </d 阅读全文
posted @ 2021-01-25 15:01 离人怎挽_wdj 阅读(61) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示