You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ssgl/zsq/DormitoryApplication.java

15 lines
730 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen; // 定义包名
import org.mybatis.spring.annotation.MapperScan; // 导入MyBatis的MapperScan注解
import org.springframework.boot.SpringApplication; // 导入Spring Boot的SpringApplication类
import org.springframework.boot.autoconfigure.SpringBootApplication; // 导入Spring Boot的SpringBootApplication注解
@SpringBootApplication // 标注这是一个Spring Boot应用
@MapperScan({"com.yanzhen.mapper"}) // 扫描指定包下的Mapper接口自动生成实现类
public class DormitoryApplication { // 定义主应用类
public static void main(String[] args) { // 主方法,程序入口
SpringApplication.run(DormitoryApplication.class, args); // 启动Spring Boot应用
}
}