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

边栏推荐
- 一种架构来完成所有任务—Transformer架构正在以一己之力统一AI江湖
- Detailed analysis of pytorch's automatic derivation mechanism, pytorch's core magic
- Chapter 17 process memory
- Respect others' behavior
- R language uses the mutation function of dplyr package to standardize the specified data column (using mean function and SD function), and calculates the grouping mean of the standardized target varia
- 数据湖(十三):Spark与Iceberg整合DDL操作
- Data center concept
- 聊聊保证线程安全的 10 个小技巧
- gin集成支付宝支付
- 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
猜你喜欢

Digi重启XBee-Pro S2C生产,有些差别需要注意

ML之shap:基于boston波士顿房价回归预测数据集利用shap值对XGBoost模型实现可解释性案例
![递增的三元子序列[贪心训练]](/img/92/7efd1883c21c0e804ffccfb2231602.png)
递增的三元子序列[贪心训练]

Innovation and development of independent industrial software

Detailed analysis of pytorch's automatic derivation mechanism, pytorch's core magic

C # WPF realizes the real-time screen capture function of screen capture box

Learn kernel 3: use GDB to track the kernel call chain

No servers available for service: xxxx

nowcoder重排链表

Use of tiledlayout function in MATLAB
随机推荐
sql优化之查询优化器
What is the difference between Bi financial analysis in a narrow sense and financial analysis in a broad sense?
Excel快速合并多行数据
MySQL triggers
Test process arrangement (2)
Use of tiledlayout function in MATLAB
商业智能BI财务分析,狭义的财务分析和广义的财务分析有何不同?
R language uses dplyr package group_ The by function and the summarize function calculate the mean and standard deviation of the target variables based on the grouped variables
Visual Studio调试方式详解
vscode 常用插件汇总
【算法leetcode】面试题 04.03. 特定深度节点链表(多语言实现)
尊重他人的行为
LifeCycle
Count the running time of PHP program and set the maximum running time of PHP
How to operate and invest games on behalf of others at sea
An overview of 2D human posture estimation
数据湖(十三):Spark与Iceberg整合DDL操作
R language dplyr package summary_ If function calculates the mean and median of all numerical data columns in dataframe data, and summarizes all numerical variables based on conditions
Leetcode T49: 字母异位词分组
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