当前位置:网站首页>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
边栏推荐
- Tensorflow & pytorch common error reporting
- Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
- Interesting talk about network protocol
- Port occupied 1
- Express ② (routage)
- crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
- 程序编译调试学习记录
- 1256: bouquet for algenon
- JS 力扣刷题 103. 二叉树的锯齿形层序遍历
- Android interview theme collection
猜你喜欢
专题测试05·二重积分【李艳芳全程班】
Postman reference summary
Express middleware ③ (custom Middleware)
elmo(BiLSTM-CRF+elmo)(Conll-2003 命名实体识别NER)
Quartus Prime硬件实验开发(DE2-115板)实验二功能可调综合计时器设计
STM32 learning record 0007 - new project (based on register version)
Android 面试主题集合整理
3300万IOPS、39微秒延迟、碳足迹认证,谁在认真搞事情?
美联储数字货币最新进展
UML Unified Modeling Language
随机推荐
Technologie zéro copie
JS force deduction brush question 102 Sequence traversal of binary tree
读了一篇博客,重新理解闭包整理一下
Express中间件③(自定义中间件)
解决方案架构师的小锦囊 - 架构图的 5 种类型
第十五章 软件工程新技术
Scientists say Australian plan to cull up to 10,000 wild horses doesn’t go far enough
村上春树 --《当我谈跑步时,我谈些什么》句子摘录
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
Basic SQL query and learning
Reading notes: Secure federated matrix factorization
Three characteristics of volatile keyword [data visibility, prohibition of instruction rearrangement and no guarantee of operation atomicity]
Taobao released the baby prompt "your consumer protection deposit is insufficient, and the expiration protection has been started"
JS 力扣刷题 103. 二叉树的锯齿形层序遍历
Pytorch 经典卷积神经网络 LeNet
OSS cloud storage management practice (polite experience)
【项目】小帽外卖(八)
SQL learning window function
freeCodeCamp----arithmetic_ Arranger exercise
编程旅行之函数