当前位置:网站首页>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

边栏推荐
- 毕业季-个人总结
- LVGL 8.2 Line
- Talk about 10 tips to ensure thread safety
- MySQL triggers
- sql优化之explain
- MySQL的触发器
- Opencv learning notes - linear filtering: box filtering, mean filtering, Gaussian filtering
- Respect others' behavior
- C language achievement management system for middle school students
- Solutions to the problems of miui12.5 red rice k20pro using Au or povo2
猜你喜欢
![leetcode:6109. Number of people who know the secret [definition of DP]](/img/95/03e2606b249f26db052cf5075041c1.png)
leetcode:6109. Number of people who know the secret [definition of DP]

leetcode:6109. 知道秘密的人数【dp的定义】

统计php程序运行时间及设置PHP最长运行时间

LVGL 8.2 Line wrap, recoloring and scrolling

程序员自曝接私活:10个月时间接了30多个单子,纯收入40万

Chapter 17 process memory

商業智能BI財務分析,狹義的財務分析和廣義的財務分析有何不同?

Talk about 10 tips to ensure thread safety

Test evaluation of software testing

STM32F1与STM32CubeIDE编程实例-MAX7219驱动8位7段数码管(基于GPIO)
随机推荐
Progress in architecture
ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
实战解惑 | OpenCV中如何提取不规则ROI区域
第十六章 字符串本地化和消息字典(二)
统计php程序运行时间及设置PHP最长运行时间
Oppo find N2 product form first exposure: supplement all short boards
Explain of SQL optimization
【C语言】指针笔试题
[MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL
Map of mL: Based on Boston house price regression prediction data set, an interpretable case of xgboost model using map value
AI与生命科学
LVGL 8.2 Draw label with gradient color
Real time data warehouse
es6模块化
[information retrieval] link analysis
Test evaluation of software testing
毕业季-个人总结
C language set operation
【信息检索】链接分析
MySQL stored procedure exercise