SpringBoot连接Sqlserver

1、pom.xml添加sqlserver驱动依赖 <dependency> <groupId>com.microsoft.sqlserver</groupId>...

执行jar提示没有主清单属性

在pom.xml 中添加mainClass解决 <build> <plugins> <plugin> <group...

SpringBoot开发非web项目

实现CommandLineRunner接口,重写run方法即可@SpringBootApplication public class Application implements CommandLineRunner { pub...