当前位置:网站首页>Summary of common problems in development
Summary of common problems in development
2022-07-04 14:35:00 【Look up and smile^_^】
applicationContext.xml Configuration problem in
Q1:applicationContext.xml In file , You should use ref To receive “ Reference type ” or “ Complex type ” When the data is , The wrong is used value To receive “ Reference type ” or “ Complex type ” The data of , This resulted in the following error :
A1: Solution : From the picture ① and ② You can go to , The specific location of the problem , Namely applicationContext.xml In file , To configure TransactionManager when ,id=“‘transactionManager’” The location of , Actual configuration “javax.sql.DataSource” Complex references to types , But configuration “java.lang.String” String type value value , So will value It is amended as follows ref that will do .
Use mybatis Problems in Reverse Engineering
Q1: In the use of mybatis During reverse engineering of , All kinds of automatically generated files are prone to the problem of capitalization of the first letter of the package location , Cause subsequent calls , There is an error , The corresponding file cannot be found .
- Problem prone locations
A: Correct the path of the corresponding file , for example :Indi.dsl.crud.dao.DepartmentMapper It is amended as follows indi.dsl.crud.dao.DepartmentMapper, The case of the first letter .
Use MAVEN There may be some problems in the process
Q1: adopt maven stay idea in , Use dependency to introduce jar When the package , Possible maven Don't complain , The enclosure successfully quoted , But when running the project , Not used successfully , For example, the following dependencies are introduced :
<!-- introduce Json package , Support Json data format , Support ResponseBody -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.8</version>
</dependency>
relevant jar Successful introduction ,maven No report error
Run time appears 500 problem
A1: Solution : When such a problem occurs , You can consider whether the project is really successful JAR package , The specific location is as follows :
- Introduce the following correlation jar After package , The program can run normally .
- Will succeed Json Information output
边栏推荐
- Leetcode t47: full arrangement II
- A collection of classic papers on convolutional neural networks (deep learning classification)
- Solutions aux problèmes d'utilisation de l'au ou du povo 2 dans le riz rouge k20pro MIUI 12.5
- 统计php程序运行时间及设置PHP最长运行时间
- Excel quickly merges multiple rows of data
- MySQL的触发器
- Detailed index of MySQL
- 基于51单片机的超声波测距仪
- R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses the by parameter to specify the groupin
- Nowcoder reverse linked list
猜你喜欢
LVGL 8.2 LED
Nowcoder rearrange linked list
Alcohol driving monitoring system based on stm32+ Huawei cloud IOT design
leetcode:6109. Number of people who know the secret [definition of DP]
Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on GPIO)
LVGL 8.2 text shadow
使用CLion编译OGLPG-9th-Edition源码
No servers available for service: xxxx
Compile oglpg-9th-edition source code with clion
随机推荐
【MySQL从入门到精通】【高级篇】(四)MySQL权限管理与控制
Real time data warehouse
第十七章 进程内存
Test evaluation of software testing
flink sql-client. SH tutorial
R language uses follow up of epidisplay package The plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses stress The col parameter specifies the
ML:SHAP值的简介、原理、使用方法、经典案例之详细攻略
[cloud native] how can I compete with this database?
Test process arrangement (2)
Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
Data center concept
es6模块化
Digi restarts XBee Pro S2C production. Some differences need to be noted
【云原生】我怎么会和这个数据库杠上了?
流行框架:Glide的使用
【信息检索】链接分析
AI and Life Sciences
Detailed index of MySQL
Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency
阿里被裁员工,找工作第N天,猎头又传来噩耗...