当前位置:网站首页>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
边栏推荐
- 蓝绿发布、滚动发布、灰度发布,有什么区别?
- Express中间件③(自定义中间件)
- Business case | how to promote the activity of sports and health app users? It is enough to do these points well
- How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
- Pytorch 经典卷积神经网络 LeNet
- Chapter 15 new technologies of software engineering
- Using Baidu Intelligent Cloud face detection interface to achieve photo quality detection
- JS 烧脑面试题大赏
- JUC interview questions about synchronized, ThreadLocal, thread pool and atomic atomic classes
- Force deduction brush question 101 Symmetric binary tree
猜你喜欢

服务器中挖矿病毒了,屮

groutine

Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)
![MySQL [SQL performance analysis + SQL tuning]](/img/71/2ca1a5799a2c7a822158d8b73bd539.png)
MySQL [SQL performance analysis + SQL tuning]

专题测试05·二重积分【李艳芳全程班】

Decentralized Collaborative Learning Framework for Next POI Recommendation

Postman reference summary

Wechat applet

美联储数字货币最新进展

scikit-learn構建模型的萬能模板
随机推荐
Oracle告警日志alert.log和跟踪trace文件中文乱码显示
零拷貝技術
【报名】TF54:工程师成长地图与卓越研发组织打造
Oracle alarm log alert Chinese trace and trace files
Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"
Dynamic subset division problem
VsCode-Go
低频量化之明日涨停预测
Atcoder beginer contest 248c dice sum (generating function)
Android 面试主题集合整理
神经元与神经网络
2022年江西最新建筑八大员(质量员)模拟考试题库及答案解析
美联储数字货币最新进展
Wechat applet
Using Baidu Intelligent Cloud face detection interface to achieve photo quality detection
UML Unified Modeling Language
大专的我,闭关苦学 56 天,含泪拿下阿里 offer,五轮面试,六个小时灵魂拷问
金蝶云星空API调用实践
Express②(路由)
UML统一建模语言