当前位置:网站首页>Problems encountered in the project and Solutions
Problems encountered in the project and Solutions
2022-07-23 18:12:00 【Joy's sister is a rookie】
Question 1
Report errors :
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lanou.mapper.GoodsMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {
@org.springframework.beans.factory.annotation.Autowired(required=true)}
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lanou.mapper.GoodsMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {
@org.springframework.beans.factory.annotation.Autowired(required=true)}
** reason :** No import mapper.xml
Question two
** Report errors :**404 Failed to enter method
** reason :** stay Controller No comments in @ResponseBody
Question 3
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-dNcFy2ll-1658541859925)(C:\Users\pon18\AppData\Roaming\Typora\typora-user-images\image-20220722162034643.png)]](/img/20/5cb9eda315f97f89ef5c70c1b377d6.png)
Use jackson Encountered in the process of transferring data to the browser 406, The browser can't understand the data you send (List object )
Check the problem and find that it is not turned on mvc Annotation driven
stay spring Medium configuration is ok
<mvc:annotation-driven></mvc:annotation-driven>-->
Question 4
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-OVHHIawb-1658541859926)(C:\Users\pon18\AppData\Roaming\Typora\typora-user-images\image-20220722162016972.png)]](/img/a5/12d1e42be9eee427646d2daa98b03e.png)
Error message :Uncaught ReferenceError: $ is not defined
The reason is that I wrote :
<script src="js.jquery.js"></script>
The right thing to do is :
<script src="js/jquery.js"></script>
Question five
When the browser performs query operations , Enter in the address field username and password After that, you can't get the right result .User The property name of is userName, Enter in the input field ,userName Automatic change username
Because maybe it went cache , So change n
At this time, copy and paste in other text and change it to userName Re-enter
http://localhost:8080/shoppingCart2_war/user/login.do?userName=liguocheng&password=12345
Question 6
stay html Import BootStrap frame , But the style cannot be displayed on the page , Clean cache target, Rerun .
Question seven
Console error :
Field userMapper in com.lanou.springboot.service.UserService required a bean of type com.lanou.springboot.mapper.UserMapper that could not be found.
Add on the startup class @MapperScan("com.lanou.springboot.mapper")
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-4scLM24e-1658541888620)(C:\Users\pon18\AppData\Roaming\Typora\typora-user-images\image-20220723093643655.png)]](/img/44/47476a0e513c1fd2ecb13c97083ef6.png)
边栏推荐
- Docker installs redis and starts it as a configuration file
- [215] gin framework connects to MySQL database
- 吉时利静电计在新能源电池测试方案的应用
- [216] go language standard library package name
- LDAP unified authentication service solution [easy to understand]
- Explication détaillée du principe de co - intégration en go
- Debug: the formal parameter has const modifier, which should be paid attention to
- aspose的仓库地址
- vb连接Access数据库自定义
- Trust guessing numbers game
猜你喜欢

Did not find the necessary patch file 'newopui.pak'?

Explanation of PPPoE protocol and analysis of Wireshark packet capturing during dialing

How the lock issued by go works (combined with the source code)

Trust finds the maximum value in the array

Sentinel 安装图解

信息论 (Information Theory): Introduction and information measures

"Nowadays, more than 99.9% of the code is garbage!"

Go medium high parallel communication mode: the underlying principle of channel pipeline

前置放大器和功率放大器有什么区别?

Une erreur s'est produite lors de la configuration du login du moteur Gom: aucun correctif requis n'a été trouvé!
随机推荐
docker安装redis并以配置文件方式启动
go中高并发下的锁是如何工作的(结合源码)
【215】gin框架连接mysql数据库
Common operations of idea debug
(十一)STM32——IO引脚复用与映射
Redis data loss problem
Leetcode: Jianzhi offer II 115. reconstruction sequence [graph theory thinking + in degree consideration + topological sorting]
Data crawling and display of e-commerce platform based on scratch
分析一个 .NET 写的 某 RFID标签系统 CPU暴涨
Static distribution and dynamic distribution in trust
Seal player IP and machine code and unlock the blocked tutorial
Activity Registration: how to quickly start the open source tapdata live data platform on a zero basis?
MySQL8.0.23四次重装都失败在 'Writing configuration file'
本周一问 | Vivado 综合阶段什么约束生效?
Qt多线程实例与connect第五个参数[通俗易懂]
【通俗易懂】关系模式范式分解教程 3NF与BCNF口诀!小白也能看懂「建议收藏」
IDEA这些既好用又好玩的三十多个宝贝插件你还不知道吗?「建议收藏」
薪资高压线
Seata
Open source needs specialization