环境搭建
选择模块thymeleaf,web,openFeign,lombok,spring-boot-devTools
加入common模块(有注册中心之类的很多依赖)排除jdbc依赖
<dependency> <groupId>com.*min.gulimall</groupId> <artifactId>gulimall-common</artifactId> <version>0.0.1-SNAPSHOT</version> <exclusions> <exclusion> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> </exclusion> </exclusions> </dependency>
配置yml文件
spring: #配置nacos
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
application:
name: gulimall-auth-server
server:
port: 20000
放入登录页面和注册页面,并且把静态资源转给nginx
添加域名