当前位置:网站首页>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
边栏推荐
- Crontab timing task output generates a large number of mail and runs out of file system inode problem processing
- [code analysis (6)] communication efficient learning of deep networks from decentralized data
- Analysis and understanding of atomicintegerarray source code
- Force deduction brush question 101 Symmetric binary tree
- Business case | how to promote the activity of sports and health app users? It is enough to do these points well
- Kettle--控件解析
- 【vmware】vmware tools 地址
- Small case of web login (including verification code login)
- Tensorflow Download
- Atcoder beginer contest 248c dice sum (generating function)
猜你喜欢

Express中间件③(自定义中间件)

STM32学习记录0007——新建工程(基于寄存器版)

Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)

UML Unified Modeling Language

Interesting talk about network protocol

基础知识学习记录

SSM project deployed in Alibaba cloud

美联储数字货币最新进展

freeCodeCamp----arithmetic_ Arranger exercise

Quartus Prime硬件实验开发(DE2-115板)实验一CPU指令运算器设计
随机推荐
Go语言 RPC通讯
Reading notes: Secure federated matrix factorization
Small case of web login (including verification code login)
【项目】小帽外卖(八)
Ora-600 encountered in Oracle environment [qkacon: fjswrwo]
Analysis and understanding of atomicintegerarray source code
groutine
Solution of discarding evaluate function in surprise Library
freeCodeCamp----arithmetic_ Arranger exercise
leetcode--977. Squares of a Sorted Array
OSS cloud storage management practice (polite experience)
淘宝发布宝贝提示“您的消保保证金额度不足,已启动到期保障”
[code analysis (6)] communication efficient learning of deep networks from decentralized data
cnpm的诡异bug
Special test 05 · double integral [Li Yanfang's whole class]
Redis docker 安装
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
Using Jupiter notebook in virtual environment
Chapter 15 new technologies of software engineering
What is the difference between blue-green publishing, rolling publishing and gray publishing?