自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 springboot+mybatis时出现Invalid bound statement(not found)的问题

出现原因:找不到对应的mapper.xml文件(映射文件) 可能原因:1.检查xml文件所在package名称是否和Mapper interface所在的包名mapper的namespace写的不对!!!注意修改。2.UserDao的方法在UserDao.xml中没有,然后执行UserDao的方法会报此3. UserDao的方法返回值是List,而select元素没有正确配置Result...

2020-02-09 12:24:10 220

原创 Intellij IDEA新建xml文件时,文件不能高亮显示,已设置过*.xml

解决方式:方法一:方法二:在下方列表中Text选中点击减号,再XML中点加号手动重命名一下。

2020-02-09 11:47:51 1241 5

原创 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could

*错误现象:springboot+mybatis整合过程中Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.Reason: Failed to determine a suitable driver classAc...

2020-02-08 11:09:36 125

原创 springBoot2.2.2+springsecurity+mybatis(三)动态配置权限,简单

数据库设计2.自定义CustomFilterInvocationSecurityMetadaSource(获取角色信息)@Componentpublic class CustomFilterInvocationSecurityMetadaSource implements FilterInvocationSecurityMetadataSource { AntPathMatcher ...

2020-01-13 20:15:46 451

原创 springboot2.2.2+springSecurity+mybatis(二)基于数据库的认证

配置类密码加密@Bean PasswordEncoder passwordEncoder(){ return new BCryptPasswordEncoder(); }定义认证规则 @Resource UserService userService;@Override protected void configure(Au...

2020-01-13 20:07:47 203

原创 springboot2.2.2+springSecurity+mybatis(一) 基于内存认证

依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <...

2020-01-13 19:55:51 266

原创 mybatis打印sql的log文件

Set root category priority to INFO and its only appender to CONSOLE.#log4j.rootCategory=INFO, CONSOLE debug info warn error fatallog4j.rootCategory=debug, CONSOLE, LOGFILESet the...

2020-01-09 15:08:22 143

原创 idea的使用学习

1.概念idea的项目=Eclipse中的工作空间idea的module=Eclipse中的项目2.自动导包设置 settting 中的auto Import 将optimize imports勾上快捷键 setting中的keymap选项中选择Code选中Completion的basic先remove已存在快捷键,再想要选中地方进行Add keyboard进行快捷键设置编码过程中:...

2020-01-09 15:00:30 84

原创 关于idea 中使用mybatis报出 Invalid bound statement (not found)的错误解决方案

Mapper绑定映射文件失败<build> <resources> <resource> <directory>src/main/java</directory> <includes> ...

2019-12-13 16:35:05 784

原创 java.lang.ClassNotFoundException: org.apache.http.client.HttpClient的解决方式

java.lang.ClassNotFoundException: org.apache.http.client.HttpClient的解决方式原因:缺少依赖解决方式:解决之前<dependency> <groupId>org.apache.solr</groupId> <artifactId>solr-solrj&lt...

2019-12-12 01:38:31 5461

原创 MyBatis的SqlMapConfig中的数据库之JNDI的使用

步骤一:运用工具:IDEA在web项目中补全META-INF文件夹,放一个文件context.xml文件内容:<Context><Resourcename=“jdbc/eesy_mybatis” 数据源的名称type=“javax.sql.DataSource” 数据源类型auth=“Container” 数据源提供者maxA...

2019-08-05 09:14:42 251

原创 MyBatis学习-配置(一)

配置properties:方式一:方式二:![](https://img-blog.csdnimg.cn/2019080410563948.PNG方式三:2:为环境中的resultType和parameterType提供别名<typeAliases> <!--typeAlias用于配置别名。type属性指定的是实体类全限定类名。alias属性指定别名,当指定了...

2019-08-04 11:36:36 88

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除