当前位置:网站首页>开发中常见问题总结
开发中常见问题总结
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信息输出

边栏推荐
猜你喜欢

Use of tiledlayout function in MATLAB

gin集成支付宝支付

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

Leetcode 61: rotating linked list

WT588F02B-8S(C006_03)单芯片语音ic方案为智能门铃设计降本增效赋能

Test process arrangement (2)
![leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]](/img/48/56ed03b21709a97fd55c8cccf98092.png)
leetcode:6110. The number of incremental paths in the grid graph [DFS + cache]

Nowcoder reverse linked list

【信息检索】分类和聚类的实验

leetcode:6110. 网格图中递增路径的数目【dfs + cache】
随机推荐
10.(地图数据篇)离线地形数据处理(供Cesium使用)
Test process arrangement (3)
尊重他人的行为
C # WPF realizes the real-time screen capture function of screen capture box
MySQL stored procedure exercise
R language uses bwplot function in lattice package to visualize box plot and par Settings parameter custom theme mode
vscode 常用插件汇总
Industrial Internet has greater development potential and more industry scenarios
ARouter的使用
sql优化之查询优化器
为什么图片传输要使用base64编码
第十七章 进程内存
Chapter 16 string localization and message Dictionary (2)
卷积神经网络经典论文集合(深度学习分类篇)
失败率高达80%,企业数字化转型路上有哪些挑战?
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
【云原生】我怎么会和这个数据库杠上了?
The game goes to sea and operates globally
Ruiji takeout notes
2022 game going to sea practical release strategy