Questions tagged [mybatis-plus]

11 questions
2
votes
1 answer

java Generic problems.Why does this work?

public interface IPage extends Serializable { /** @deprecated */ @Deprecated default String[] descs() { return null; } /** @deprecated */ @Deprecated default String[] ascs() { return null; } …
x f
  • 63
  • 4
1
vote
1 answer

MyBatis mapper - Unsatisfied dependency expressed through field

After I established the project using technology of SpringBoot,Mysql and Mybatisplus with IdeaIntelliJ tool, I got the following issue when I tried to run the project: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating…
Cody Qi
  • 13
  • 2
1
vote
0 answers

Can mybatis dynamic sql operate data queried from sql?

Mybatis can operate input parameters data with "if" and "foreach", but how about the data just queried within same Mybatis sql? case: table field 1 select filed from table; will get 1 Can Mybatis manage to update field to 2 with this kind of…
wo4wangle
  • 99
  • 6
0
votes
0 answers

how to hook the array field in postgreSql with mybatis-plus?

I tried to hook the field "path" in my custom class "category" with a List or Array class to a column in my postgreSql with a data type of int4[], but I failed. The code is as follows (note, using the kotlin language and springboot framework) (By…
0
votes
0 answers

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.wms.wms.mapper.UserMapper.listAll

When I run my project, and input http://localhost:8090/list ,I got a Whitelabel Error Page. Meanwhile, appeared the following error message in my backend console: org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):…
Cody Qi
  • 13
  • 2
0
votes
0 answers

Mybatis-plus Oracle datasource jar showing 'loading with no message' on Linux - How to solve?

When I running this jar in linux,It's show loading and no message . and all the time wait about 3 minute enter image description here change my datasource and telnet the datasource ip ,but It's ok ,so I don't know how to deal with this question
Jason
  • 1
0
votes
0 answers

Use mybatis-plus to manipulate java record class and report error for insert operation

I hava a record class as java bean: @With @TableName(value = "user") public record User( @TableId(value = "uid", type = IdType.AUTO) Integer id, String username, String password, ) {} then I use mybatis-plus to…
0
votes
0 answers

Timestamp comparison using MyBatis QueryWrapper

I'm trying to make a timestamp comparison after parsing a couple strings that have the default "dow mon dd hh:mm:ss zzz yyyy" in java, using MyBatisPlus for a postgresql DB. I'm updating legacy code so I'm not able to change a lot of the structure,…
Carlos S. Na
  • 63
  • 1
  • 2
  • 7
0
votes
0 answers

How to serialize/deserialize enum column in spring boot?

I am using spring boot (with bundled jackson and lombok), mybatis and mybatis-plus. I have a model User with an enum column status: import com.baomidou.mybatisplus.annotation.EnumValue; import com.fasterxml.jackson.annotation.JsonValue; import…
Mike
  • 173
  • 4
  • 14
0
votes
1 answer

After upgrading SpringBoot 2.5.3, replacing spring.datasource. Schema to spring.sql.init.schema-locations is failed

How do I use spring.sql.init.schema-locations Spring-boot version 2.5.3 failed my spring.sql.inti.schema-locations and spring.datasource.schema spring: sql: init: schema-locations: classpath:sql/create_table_h2.sql main: …
oliver
  • 1
  • 1