整合玩ssm ,折腾springboot,对着官网,别人的demo 看着简单,自己操作起来 一堆错误。
环境IDEA,maven,过程不演示 ,
file=>new project=>mavent(不用选择模板)=>next=> 填写groupid,artifactid 后next> next........
新建一个Hellocontroller, HelloApplication
最后工程如图:
pom.xml
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.8.RELEASE</version> </parent> <!--导入springBoot 的依赖--> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies> <!--Creating an Executable Jar--> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>