当前位置:网站首页>开发中常见问题总结
开发中常见问题总结
2022-07-04 13:02:00 【抬头丨丨微笑^_^】
applicationContext.xml中的配置问题
Q1:applicationContext.xml文件中,应该使用ref来接收“引用类型”或“复杂类型”的数据时,使用了错误的value来接收“引用类型”或“复杂类型”的数据,导致如下错误:
A1:解决方案:从图中①和②可以定位到,具体发生问题的位置,就是applicationContext.xml文件中,配置TransactionManager时,id=“‘transactionManager’”的位置,实际需要配置“javax.sql.DataSource”类型的复杂引用,但是配置“java.lang.String”字符串类型的value值,所以将value修改为ref即可。
使用mybatis逆向工程时存在的问题
Q1: 在使用mybatis的逆向工程时,自动生成的各种文件很容易出现包位置第一个首字母大写的问题,导致后续调用时,出现错误,找不到相应文件。
- 容易出现问题的位置
A:将相应文件的路径修改正确即可,例如:Indi.dsl.crud.dao.DepartmentMapper修改为indi.dsl.crud.dao.DepartmentMapper,首字母的大小写问题。
使用MAVEN时可能存在的问题
Q1:通过maven在idea中,利用依赖引入jar包的时候,可能存在maven不报错,包体成功引用,但是真正在运行项目的时候,并没有使用成功,例如引入如下依赖:
<!-- 引入Json包,支持Json数据格式,支持ResponseBody -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.8</version>
</dependency>
相关jar成功引入,maven没有报错
运行时出现500问题
A1:解决方案:出现如此问题时,可以考虑项目中是否真正的成功引用JAR包,具体位置如下:
- 引入如下相关jar包后,程序能够正常运行。
- 成功将Json信息输出
边栏推荐
- [MySQL from introduction to proficiency] [advanced chapter] (V) SQL statement execution process of MySQL
- Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
- 聊聊保证线程安全的 10 个小技巧
- Talk about 10 tips to ensure thread safety
- R language ggplot2 visualization: gganimate package creates animated graph (GIF) and uses anim_ The save function saves the GIF visual animation
- Progress in architecture
- 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
- SqlServer函数,存储过程的创建和使用
- Industrial Internet has greater development potential and more industry scenarios
- 一种架构来完成所有任务—Transformer架构正在以一己之力统一AI江湖
猜你喜欢
Leetcode T48:旋转图像
实战解惑 | OpenCV中如何提取不规则ROI区域
Test process arrangement (3)
Scratch Castle Adventure Electronic Society graphical programming scratch grade examination level 3 true questions and answers analysis June 2022
How to package QT and share exe
Use of tiledlayout function in MATLAB
数据仓库面试问题准备
Test evaluation of software testing
商业智能BI财务分析,狭义的财务分析和广义的财务分析有何不同?
一文概览2D人体姿态估计
随机推荐
如何游戏出海代运营、游戏出海代投
Progress in architecture
R language ggplot2 visualization: gganimate package creates dynamic line graph animation (GIF) and uses transition_ The reveal function displays data step by step along a given dimension in the animat
ML:SHAP值的简介、原理、使用方法、经典案例之详细攻略
sql优化之查询优化器
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用stress.col参数指定强调线的id子集的颜色(色彩)
ML之shap:基于boston波士顿房价回归预测数据集利用Shap值对LiR线性回归模型实现可解释性案例
MySQL之详解索引
Test evaluation of software testing
Use of tiledlayout function in MATLAB
富文本编辑:wangEditor使用教程
gin集成支付宝支付
Codeforce:c. sum of substrings
Detailed analysis of pytorch's automatic derivation mechanism, pytorch's core magic
Xcode 异常图片导致ipa包增大问题
迅为IMX6Q开发板QT系统移植tinyplay
LifeCycle
第十七章 进程内存
R语言dplyr包summarise_if函数计算dataframe数据中所有数值数据列的均值和中位数、基于条件进行数据汇总分析(Summarize all Numeric Variables)
sql优化之explain