问题描述
我正在使用Spring Cloud开发一个Azure Functions应用程序。因此,我的应用程序中没有控制器,也没有Spring Web。我当前的依赖项是:
dependencies {
/* Spring Cloud Azure Function */
implementation group: 'org.springframework.cloud',name: 'spring-cloud-function-adapter-azure',version: '3.0.10.RELEASE'
implementation group: 'org.springframework.cloud',name: 'spring-cloud-starter-function-web',version: '3.0.10.RELEASE'
/* Test */
testImplementation group: 'org.springframework.boot',name: 'spring-boot-starter-test',version: '2.3.4.RELEASE',{ exclude group: 'junit',module: 'junit' }
testImplementation group: 'org.junit.jupiter',name: 'junit-jupiter-api',version: '5.7.0'
testRuntimeOnly group: 'org.junit.jupiter',name: 'junit-jupiter-engine',version: '5.7.0'
/* Azure Service Bus */
compile group: 'com.microsoft.azure',name: 'azure-servicebus',version: '3.4.0'
//implementation group: 'com.azure',name: 'azure-messaging-servicebus',version: '7.0.0-beta.6'
/* Jackson */
implementation group: 'com.fasterxml.jackson.datatype',name: 'jackson-datatype-jsr310',version: '2.11.3'
/* Bean Validation */
compile group: 'org.hibernate',name: 'hibernate-validator',version: '6.1.6.Final'
compile group: 'org.glassfish',name: 'javax.el',version: '3.0.0'
/* Database */
compile group: 'org.springframework.data',name: 'spring-data-jpa',version: '2.3.4.RELEASE'
compile group: 'org.springframework.boot',name: 'spring-boot-starter-jdbc',version: '2.3.4.RELEASE'
compile group: 'javax.persistence',name: 'javax.persistence-api',version: '2.2'
compile group: 'org.hibernate',name: 'hibernate-entitymanager',version: '5.4.22.Final'
compile group: 'org.postgresql',name: 'postgresql',version: '42.2.18'
/* HTTP Client */
implementation group: 'com.mashape.unirest',name: 'unirest-java',version: '1.4.9'
}
我想使用Springfox 3为我的HttpTrigger函数生成Open API json。可能吗?怎么样?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)