一、使用SpringBoot+Maven搭建一个多模块项目(可以参考这篇文章 --> 这里)
二、删除父工程的src文件,删除app、browser、core下的.java文件
依赖关系:
三、父工程pom.xml文件
九、在zeke-security-demo启动类上添加测试接口
@RestController @SpringBootApplication public class ZekeSecurityDemoApplication { public static void main(String[] args) { SpringApplication.run(ZekeSecurityDemoApplication.class, args); } @GetMapping("/hello") public String hello(){ return "success"; } }十、输入地址localhost/hello
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。