当前位置:网站首页>BUG_ me
BUG_ me
2022-04-23 16:50:00 【Kramer_ one hundred and forty-nine】
front end
filter
about url-pattern It can take the following forms :
/xxx/xxx.do
/xxx/*
/*
*.do
JS Use in el expression
stay JavaScript Use in EL expression ,El The expression must use a string .
stay html Some can be used directly .
Methods triggered by dynamically generated elements
Methods triggered by dynamically generated elements , The argument must be a string .
The binding event
1、
Bound to events js The code is written in $(function() {….})
It means after the page is loaded , Execute binding code .
Written in $(function() {….})
Outside, the binding event is executed when the page is loaded , May not load dom perhaps jquery Object is bound to the event first .
2、
Dynamically generated html Fragments cannot be bound by ordinary events .
grammar :$( Need a valid outer element of the bound element ).on( How to bind Events , Binding element required , Callback function )
Back end
Spring Web project ,Invalid bound statement (not found)
xml The file may not have been put in target/classes In this classpath . for example XXXDao In bag XXXdao.xml Missing file .
This problem will not occur in local projects .
terms of settlement : stay pom.xml Add... To the document
<build>
<!-- The purpose is to src/main/java In the directory xml The file is included in the output result . Output classes Directory -->
<resources>
<resource>
<directory>src/main/java</directory><!-- directory -->
<includes><!-- Including... In the directory .properties,.xml All the files will be scanned -->
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
SpringBoot Integrate MyBatis,url have a problem
“Failed to configure a DataSource: ‘url’ attribute is not specified and no embedded datasource could be configured.” Error of
take application.properties Switch to application.yml
Or change the coding method of the whole project to UTF-8, Then write again in yellow .
SpringBoot Project upload file size
The default upload file size is 1MB, An error will be reported when transmitting a larger file .
application.properties Increase the configuration :
spring.servlet.multipart.max-file-size=20MB # Single file is the largest 20MB
spring.servlet.multipart.max-request-size=20MB # Single request maximum 20MB
compiler
IDEA from git Import the project , Display only jsp Wait for the documents .
Need from File–Project Structure–Modelus, Add items manually , Choose the right template .
IDEA jar The bag is not complete
Need from File–Project Structure–Modules On the right side Dependencies, Add dependencies manually
database
1、MyBatis encounter “@P0” There are grammar errors nearby when
hold #
Switch to $
2、 When using fuzzy queries
1、 stay Java Well written in ”%xxx%“, In the incoming mapper Inside xml The mapping file
2、mapper The mapping file like '%' #{xxx} '%'
Double quotation marks can also be used here , But there must be a space between
3、mapper The mapping file like '%${xxx}%'
版权声明
本文为[Kramer_ one hundred and forty-nine]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231359460545.html
边栏推荐
- Change the password after installing MySQL in Linux
- Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out
- TypeError: set_figure_params() got an unexpected keyword argument ‘figsize‘
- Modify the test case name generated by DDT
- 关于 background-image 渐变gradient()那些事!
- Introduction notes to PHP zero Foundation (13): array related functions
- How to implement distributed locks with redis?
- Copy constructor shallow copy and deep copy
- Solution of garbled code on idea console
- How magical is the unsafe class used by all major frameworks?
猜你喜欢
OMNeT学习之新建工程
Change the password after installing MySQL in Linux
Project framework of robot framework
Gartner 发布新兴技术研究:深入洞悉元宇宙
Take according to the actual situation, classify and summarize once every three levels, and see the figure to know the demand
Cartoon: what are IAAs, PAAS, SaaS?
【PIMF】OpenHarmony啃论文俱乐部—在ACM Survey闲逛是什么体验
众昂矿业:萤石浮选工艺
Gartner 發布新興技術研究:深入洞悉元宇宙
How vscode compares the similarities and differences between two files
随机推荐
计组 | 【七 输入/输出系统】知识点与例题
MySQL master-slave replication
批量制造测试数据的思路,附源码
Detailed explanation of Niuke - Gloves
ACL 2022 | DialogVED:用于对话回复生成的预训练隐变量编码-解码模型
Set the color change of interlaced lines in cells in the sail software and the font becomes larger and red when the number is greater than 100
Phpstudy V8, a commonly used software for station construction 1 graphic installation tutorial (Windows version) super detailed
CentOS MySQL multi instance deployment
Mock test
Gartner 发布新兴技术研究:深入洞悉元宇宙
建站常用软件PhpStudy V8.1图文安装教程(Windows版)超详细
LVM and disk quota
Nodejs installation and environment configuration
◰ GL shader handler encapsulation
5分钟NLP:Text-To-Text Transfer Transformer (T5)统一的文本到文本任务模型
关于局域网如何组建介绍
[pimf] openharmony paper Club - what is the experience of wandering in ACM survey
Use if else to judge in sail software - use the title condition to judge
How does flash cache data in memory?
How vscode compares the similarities and differences between two files