1.SpringBoot框架的搭建前面已经写到了,此处不作过多讲解;https://mp.youkuaiyun.com/postedit/88963394
2.引入BootStrap和AngularJs的相关依赖以及对应的页面
同时要在application.properties中配置:
#配置模板引擎 spring.thymeleaf.prefix=classpath:/templates/ spring.mvc.view.prefix=classpath:/templates/ spring.mvc.view.suffix=.html #当static文件夹下还有文件夹时,访问时,需要该配置,否则访问不到 spring.mvc.static-path-pattern=/static/**
3.建立相应的案例,大致的包如下
4.启动SpringBoot的启动类,访问既可以。