Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the case error of sql field name in Mybatis Plus query

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "Mybatis Plus query when sql field name case report how to solve", in the daily operation, I believe that many people in the Mybatis Plus query sql field name case report how to solve the problem, the editor consulted all kinds of data, sorted out a simple and easy to use method of operation, hope to answer the "Mybatis Plus query sql field name case report how to solve" doubt! Next, please follow the editor to study!

Sql field name case error encountered when Mybatis Plus query

Error parsing

No img_url column was found in the database

Database field name is uppercase

Solution

Add the following to application.properties:

Mybatis-plus.configuration.map-underscore-to-camel-case=false

Perfect operation ~

Mybatis Plus returned map case problem

This won't work.

Select VALUE as value,TYPE as type from *

This is the only way.

Select VALUE as "value", TYPE as "type" from *; at this point, the study on "how to solve the case error of sql field name in Mybatis Plus query" is over. I hope to be able to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report