Springboot + mybatis + Vue (I), create the project

Time:2022-1-8

Springboot + mybatis + Vue (I), create the project
Springboot + mybatis + Vue (II) to implement the interface
Springboot + mybatis + Vue (III). Curd is realized through Axios

Intelij create project

Springboot + mybatis + Vue (I), create the project
Do not click mysql, pol There is no dependency on MySQL in XML

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <scope>runtime</scope>
        </dependency>

add as maven project

Or restart, otherwise clicking run has no effect
Springboot + mybatis + Vue (I), create the project

Configure the server, deployment, and click Run

Springboot + mybatis + Vue (I), create the project

Springboot + mybatis + Vue (I), create the project

No connection, MySQL error

Springboot + mybatis + Vue (I), create the project

application. Properties configure MySQL

server. Port = 8888 // change the port
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

Recommended Today

Proper memory alignment in go language

problem type Part1 struct { a bool b int32 c int8 d int64 e byte } Before we start, I want you to calculatePart1What is the total occupancy size? func main() { fmt.Printf(“bool size: %d\n”, unsafe.Sizeof(bool(true))) fmt.Printf(“int32 size: %d\n”, unsafe.Sizeof(int32(0))) fmt.Printf(“int8 size: %d\n”, unsafe.Sizeof(int8(0))) fmt.Printf(“int64 size: %d\n”, unsafe.Sizeof(int64(0))) fmt.Printf(“byte size: %d\n”, unsafe.Sizeof(byte(0))) fmt.Printf(“string size: %d\n”, […]