当前位置:网站首页>BUG_me
BUG_me
2022-04-23 14:00:00 【Kramer_149】
前端
过滤器
对于url-pattern可以有以下形式:
/xxx/xxx.do
/xxx/*
/*
*.do
JS中使用el表达式
在JavaScript中使用EL表达式,El表达式必须使用字符串。
在html部分可以直接使用。
动态生成的元素所触发的方法
动态生成的元素所触发的方法,参数必须是字符串。
绑定事件
1、
绑定事件的js代码写在$(function() {….})里面是指在页面加载完成之后,执行绑定代码。
写在$(function() {….})外面是在加载页面时执行绑定事件,可能发生未加载dom或者jquery对象时就先绑定事件了。
2、
动态生成的html片段不能用普通的事件绑定方式。
语法:$(需要绑定元素的有效外层元素).on(绑定事件的方式,需要绑定元素,回调函数)
后端
Spring Web项目,Invalid bound statement (not found)
xml文件可能没有放入target/classes这个类路径中。例如XXXDao包中的XXXdao.xml文件缺失。
这个在本地项目中不会出现这个问题。
解决办法:在pom.xml文件中加入
<build>
<!--目的是把src/main/java目录中的xml文件包含到输出结果中。输出的classes目录中-->
<resources>
<resource>
<directory>src/main/java</directory><!--所在的目录-->
<includes><!--包括目录下的.properties,.xml文件都会扫描到-->
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
SpringBoot整合MyBatis,url出问题
“Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.”的错误
将application.properties换成application.yml
或者将整个工程编码方法改为UTF-8,然后标黄的地方重新写。
SpringBoot项目上传文件大小
默认上传文件大小限制为1MB,传送更大文件时会报错。
application.properties增加配置:
spring.servlet.multipart.max-file-size=20MB # 单个文件最大20MB
spring.servlet.multipart.max-request-size=20MB # 单次请求最大20MB
编译器
IDEA从git导入项目,只显示jsp等文件。
需要从File–Project Structure–Modelus,手动添加项目,选择合适的模板。
IDEA jar包不全
需要从File–Project Structure–Modules右侧Dependencies,手动添加依赖
数据库
1、MyBatis遇到 “@P0”附近有语法错误 时
把 # 换成$
2、使用模糊查询的时候
1、在Java中编写好”%xxx%“,在传入mapper里的xml映射文件
2、mapper映射文件 like '%' #{xxx} '%' 此处引号也可使用双引号,但是之间必须有空格
3、mapper映射文件 like '%${xxx}%'
版权声明
本文为[Kramer_149]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_46199937/article/details/117067948
边栏推荐
- 记录一个奇怪的bug:缓存组件跳转之后出现组件复制
- Get the attribute value difference between two different objects with reflection and annotation
- Tensorflow & pytorch common error reporting
- 变长参数__VA_ARGS__ 和 写日志的宏定义
- JUC interview questions about synchronized, ThreadLocal, thread pool and atomic atomic classes
- Analysis of redo log generated by select command
- Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
- [code analysis (7)] communication efficient learning of deep networks from decentralized data
- Dynamic subset division problem
- Modify the Jupiter notebook style
猜你喜欢

大专的我,闭关苦学 56 天,含泪拿下阿里 offer,五轮面试,六个小时灵魂拷问

groutine

Record a strange bug: component copy after cache component jump

10g database cannot be started when using large memory host

JMeter pressure test tool

Basic knowledge learning record

Express ② (routing)

联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作

服务器中挖矿病毒了,屮

SQL learning | complex query
随机推荐
初识go语言
Es introduction learning notes
Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)
Move blog to CSDN
Un modèle universel pour la construction d'un modèle d'apprentissage scikit
大专的我,闭关苦学 56 天,含泪拿下阿里 offer,五轮面试,六个小时灵魂拷问
Express②(路由)
程序编译调试学习记录
变长参数__VA_ARGS__ 和 写日志的宏定义
freeCodeCamp----time_ Calculator exercise
Tensorflow Download
Pytorch 经典卷积神经网络 LeNet
Android篇:2019初中级Android开发社招面试解答(中
记录一个奇怪的bug:缓存组件跳转之后出现组件复制
Choreographer full resolution
项目中遇到的问题(五)操作Excel接口Poi的理解
基础知识学习记录
[code analysis (5)] communication efficient learning of deep networks from decentralized data
Express ② (routing)
Wechat applet