当前位置:网站首页>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 T49: 字母异位词分组
- 商業智能BI財務分析,狹義的財務分析和廣義的財務分析有何不同?
- 炒股网上开户安全吗?会不会被骗。
- Detailed explanation of visual studio debugging methods
- Wt588f02b-8s (c006_03) single chip voice IC scheme enables smart doorbell design to reduce cost and increase efficiency
- LVGL 8.2 LED
- [algorithm leetcode] interview question 04.03 Specific depth node linked list (Multilingual Implementation)
- R language ggplot2 visualization: gganimate package creates animated graph (GIF) and uses anim_ The save function saves the GIF visual animation
- LVGL 8.2 List
- Ml: introduction, principle, use method and detailed introduction of classic cases of snap value
猜你喜欢
失败率高达80%,企业数字化转型路上有哪些挑战?
Test process arrangement (2)
Pandora IOT development board learning (RT thread) - Experiment 3 button experiment (learning notes)
数据中台概念
【信息检索】链接分析
Practical puzzle solving | how to extract irregular ROI regions in opencv
codeforce:C. Sum of Substrings【边界处理 + 贡献思维 + 灵光一现】
A keepalived high availability accident made me learn it again
RK1126平台OSD的实现支持颜色半透明度多通道支持中文
Classify boost libraries by function
随机推荐
Stm32f1 and stm32subeide programming example -max7219 drives 8-bit 7-segment nixie tube (based on GPIO)
sql优化之查询优化器
C language small commodity management system
聊聊保证线程安全的 10 个小技巧
Query optimizer for SQL optimization
Leetcode T47: 全排列II
Opencv3.2 and opencv2.4 installation
Excel quickly merges multiple rows of data
软件测试之测试评估
LVGL 8.2 Menu
C language programming
Ruiji takeout notes
92. (cesium chapter) cesium building layering
PyTorch的自动求导机制详细解析,PyTorch的核心魔法
remount of the / superblock failed: Permission denied
SqlServer函数,存储过程的创建和使用
【云原生】我怎么会和这个数据库杠上了?
Digi XBee 3 RF: 4个协议,3种封装,10个大功能
flink sql-client. SH tutorial
[cloud native] how can I compete with this database?