microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

"eventuate.message" table how to auto create? #180

Closed wukongshuo closed 7 months ago

wukongshuo commented 7 months ago

When I try to create a simple customer service and create a post request customer interface, I encounter an error, but I don't know which configuration determines this. Which configuration enables the automatic creation of the corresponding table? ”org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [insert into eventuate.message(id, destination, headers, payload, creation_time, published) values(?, ?, ?, ?, ROUND(UNIX_TIMESTAMP(CURTIME(4)) * 1000), ?)]; nested exception is java.sql.SQLSyntaxErrorException: Table 'eventuate.message' doesn't exist“

cer commented 7 months ago

You have two options: