1.application.yml配置文件:
#swagger是否激活
swagger:
enable: true
2.SwaggerConfiguration.java
package com.lmp.config;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import