当前位置:网站首页>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)
边栏推荐
- [215] gin framework connects to MySQL database
- PDO operation
- IDEA这些既好用又好玩的三十多个宝贝插件你还不知道吗?「建议收藏」
- Seal player IP and machine code and unlock the blocked tutorial
- go中高并发下的锁是如何工作的(结合源码)
- 数字安全巨头Entrust披露六月遭到勒索软件团伙攻击
- QT multithread instance and the fifth parameter of connect [easy to understand]
- Calculus of variations
- Docker installs redis and starts it as a configuration file
- 为什么香港服务器可以免备案
猜你喜欢

Keras II classification problem

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

Seata

idea debug常用操作

The loss of training and testing does not decline, and the accuracy is extremely low

Trust counts the number of occurrences of words in the file

Sentinel installation diagram

数字安全巨头Entrust披露六月遭到勒索软件团伙攻击

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

Salary high voltage line
随机推荐
数据库建模
MySQL massive write problem optimization scheme MySQL parameter tuning
JVM – 彻底理解打破双亲委派机制
Static distribution and dynamic distribution in trust
【216】go语言标准库包名
Redis data loss problem
Warehouse address of Aspose
@Entity 里面的 JPA 注解
MYSQL基础及性能优化
go语言中的内存对齐是如何优化程序效率的?
Multithreaded programming
Explication détaillée du principe de co - intégration en go
多线程编程
Eric6安装问题
Open source needs specialization
Paging class
Docker installs redis and starts it as a configuration file
There is an error prompt when configuring the GOM engine login: the necessary patch file is not found!
吉时利静电计在新能源电池测试方案的应用
网分测花岗岩介电常数测试方案