Open
Description
- java 17
- spring-boot-starter-parent: 2.6.4; spring-boot-starter-webflux; r2dbc-mysql
- person record:
@Table("person")
record Person(@Id Integer id, String name, String surname) {}
- person repository:
public interface PersonRepo extends ReactiveCrudRepository<Person, Integer>{}
- person controller:
@GetMapping("/{id}")
private Mono<Person> findById(@PathVariable Integer id) {
return personRepo.findById(id);
}
- error:
Caused by: com.github.jasync.sql.db.mysql.exceptions.MySQLException: Error 1064 - #42000 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1