This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pluginRepositories> | |
<pluginRepository> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<id>hualalapluginreleases</id> | |
<name>Hualala Plugin Releases Repository</name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: | |
port: 8080 | |
servlet: | |
context-path: /omega | |
spring: | |
# 数据源 | |
datasource: | |
# Jdbc | |
type: com.zaxxer.hikari.HikariDataSource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.http.ResponseEntity; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import springfox.documentation.builders.ApiInfoBuilder; | |
import springfox.documentation.builders.PathSelectors; | |
import springfox.documentation.builders.RequestHandlerSelectors; | |
import springfox.documentation.builders.ResponseMessageBuilder; | |
import springfox.documentation.schema.ModelRef; | |
import springfox.documentation.spi.DocumentationType; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Mojo(name = "generate", defaultPhase = LifecyclePhase.INITIALIZE) | |
public class ProtoFileGenerator extends AbstractMojo { | |
@Component | |
private MavenProject project; | |
@Component | |
private PluginDescriptor descriptor; | |
@Component | |
private RepositorySystem repoSystem; | |
@Parameter(defaultValue = "${repositorySystemSession}", readonly = true, required = true) |