当前位置:网站首页>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
边栏推荐
- Idea of batch manufacturing test data, with source code
- How magical is the unsafe class used by all major frameworks?
- 批量制造测试数据的思路,附源码
- 人脸识别框架之dlib
- Easyexcel reads the geographical location data in the excel table and sorts them according to Chinese pinyin
- Xinwangda: HEV and Bev super fast charging fist products are shipped on a large scale
- New project of OMNeT learning
- PostgreSQL column storage and row storage
- Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
- Derivation of Σ GL perspective projection matrix
猜你喜欢

feign报400处理

How much do you know about the process of the interview

建站常用软件PhpStudy V8.1图文安装教程(Windows版)超详细

Smart doc + Torna generate interface document

NVIDIA graphics card driver error

org. apache. parquet. schema. InvalidSchemaException: A group type can not be empty. Parquet does not su

True math problems in 1959 college entrance examination

详解牛客----手套

Bytevcharts visual chart library, I have everything you want

博士申请 | 厦门大学信息学院郭诗辉老师团队招收全奖博士/博后/实习生
随机推荐
伪分布安装spark
05 Lua control structure
Camtasia2022软件新增功能介绍
Query the data from 2013 to 2021, and only query the data from 2020. The solution to this problem is carried out
Redis "8" implements distributed current limiting and delay queues
Deepinv20 installation MariaDB
STM32__ 03 - beginner timer
Loggie source code analysis source file module backbone analysis
1959年高考数学真题
Public variables of robotframework
How to choose the wireless gooseneck anchor microphone and handheld microphone scheme
Getting started with JDBC
Kunteng full duplex digital wireless transceiver chip kt1605 / kt1606 / kt1607 / kt1608 is suitable for interphone scheme
New project of OMNeT learning
Disk management and file system
5-minute NLP: text to text transfer transformer (T5) unified text to text task model
SQL database
Do you really understand the principle of code scanning login?
Gartner 發布新興技術研究:深入洞悉元宇宙
Rtklib 2.4.3 source code Notes