编程知识 cdmana.com

Spring boot integration mybatis FAQ

Spring Common problems in

1.NoSuchBeanDefinitionException

image.png

2.'..Service' that could not be found service Can't find

image.png

3.port 80 was already in use Port number occupied

image.png

4.TemplateInputException Template resolution exception or template not found
1. Check whether the directory of the template is the same as the configured prefix directory 
2. Check whether the returned template exists , Whether the return value type is consistent 
3. Check whether the prefix is configured with "/" End of Slash 
4. The control layer url With the client ur Is it consistent 

image.png

5. 404 abnormal Access resource does not exist

image.png

6. 500 abnormal 500 Exception to see the console

image.png

Mybatis Common problems in

1.springboot Add maven rely on

image.png

2.BadSqlGrammarException FALSE sql sentence

image.png
image.png

3.BindingException Binding exception
1. Check whether the path configuration of the mapping file is consistent with the actual storage location 
2. Check dao Whether the class name of the interface is the same as that of the mapping file namespace Same value ( You can't have Spaces )
3. Check dao Whether the method name in the interface has a corresponding id

image.png
image.png
image.png
 Binding exception Service Layer interface annotation exception .png

4.IllegalArgumentException
 reason : Say the same to me sql Whether there is a definition of repeatability in mapping ( for example : In the form of notes and xml The configuration file method is used to define , That is to say, in the same namespace There are repeated elements under id)

image.png

5.SAXParseException xml Analytical problem

image.png

版权声明
本文为[Whoa, whoa, whoa]所创,转载请带上原文链接,感谢
https://cdmana.com/2020/12/20201224214844023G.html

Scroll to Top