Home > Back-end >  Springboot starts executing SQL script file
Springboot starts executing SQL script file

Time:10-01

After Springboot program start performing operations after a conditional statement is true, read the SQL script, execute SQL script
SQL script is simply how to read and execute
Search on the Internet are Springboot starts executing
After start-up and conditional statement has been completed is read SQL statement execution has not

CodePudding user response:

Can't you use JDBC to connect to the database? There is only one springboot doesn't even have a JDBC must implement

CodePudding user response:

The
reference 1/f, Lao wang is my response:
can't you use JDBC to connect to the database? There is only one springboot doesn't even have a JDBC affirmation can't execute


A JDBC,
 
The @autowired
JdbcTemplate JdbcTemplate.
The @autowired
The DataSource DataSource.

CodePudding user response:

Just read the file directly, use JDBC to perform string!


reference zero 2 floor dragon response:
Quote: reference 1/f, Lao wang is my response:

Can't you use JDBC to connect to the database? There is only one springboot doesn't even have a JDBC affirmation can't execute


A JDBC,
 
The @autowired
JdbcTemplate JdbcTemplate.
The @autowired
The DataSource DataSource.

This is not to go? So what the hell are you ask what, directly read. SQL content, sent by JDBC SQL
  • Related