1.拿到项目(单体项目),进行基本分析大部分都是这样写的,架构流程分析
#springboot 启动类 加入 @SpringBootApplication注解
@SpringBootApplication(scanBasePackages = {"com.my.bishe"})
@MapperScan(basePackages = {"com.my.bishe.dao"})
public class DemoApplication {
private static final Logger LOG = LoggerFactory.getLogger(DemoApplication.class);
public static void main(String[] args) {
SpringApplication app = new SpringApplication(DemoApplication.class);
Environment env = app.run(args).getEnvironment();
LOG.info("启动成功!!");
LOG.info("管理员启动地址: \thttp://127.0.0.1:{}/admin/Login.html", env.getProperty("server.port"));
LOG.info("前端启动地址: \thttp://127.0.0.1:{}/front/sy.html", env.getProperty("server.port"));
}
}
通过---.yml配置文件,配置一些需要的数据库等等一些文件
架构