本文整理汇总了Java中org.springframework.hateoas.hal.DefaultCurieProvider类的典型用法代码示例。如果您正苦于以下问题:Java DefaultCurieProvider类的具体用法?Java DefaultCurieProvider怎么用?Java DefaultCurieProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DefaultCurieProvider类属于org.springframework.hateoas.hal包,在下文中一共展示了DefaultCurieProvider类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
@ConditionalOnBean(DocsMvcEndpoint.class)
@ConditionalOnMissingBean(CurieProvider.class)
@ConditionalOnProperty(prefix = "endpoints.docs.curies", name = "enabled", matchIfMissing = false)
public DefaultCurieProvider curieProvider(ServerProperties server,
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
String path = management.getContextPath() + endpoint.getPath()
+ "/#spring_boot_actuator__{rel}";
if (server.getPort().equals(management.getPort()) && management.getPort() != 0) {
path = server.getPath(path);
}
return new DefaultCurieProvider("boot", new UriTemplate(path));
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:14,代码来源:EndpointWebMvcHypermediaManagementContextConfiguration.java
示例2: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
@ConditionalOnBean(ActuatorDocsEndpoint.class)
@ConditionalOnMissingBean(CurieProvider.class)
@ConditionalOnProperty(prefix = "endpoints.docs.curies", name = "enabled", matchIfMissing = false)
public DefaultCurieProvider curieProvider(ServerProperties server,
ManagementServerProperties management, ActuatorDocsEndpoint endpoint) {
String path = management.getContextPath() + endpoint.getPath()
+ "/#spring_boot_actuator__{rel}";
if (server.getPort() == management.getPort() && management.getPort() != null
&& management.getPort() != 0) {
path = server.getPath(path);
}
return new DefaultCurieProvider("boot", new UriTemplate(path));
}
开发者ID:Nephilim84,项目名称:contestparser,代码行数:15,代码来源:EndpointWebMvcHypermediaManagementContextConfiguration.java
示例3: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
public @Bean
CurieProvider curieProvider() {
return new DefaultCurieProvider(CURIE_NAMESPACE, new UriTemplate("/docs/html5/{rel}.html"));
}
开发者ID:sw360,项目名称:sw360rest,代码行数:5,代码来源:Sw360ResourceServer.java
示例4: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
public CurieProvider curieProvider() {
return new DefaultCurieProvider("api", new UriTemplate("http://localhost/rels/{rel}"));
}
开发者ID:howiefh,项目名称:jee-restful-web,代码行数:5,代码来源:HypermediaConfiguration.java
示例5: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
public CurieProvider curieProvider()
{
return new DefaultCurieProvider("yona", new UriTemplate("http://dev.yona.nu/rels/{rel}"));
}
开发者ID:yonadev,项目名称:yona-server,代码行数:6,代码来源:CoreConfiguration.java
示例6: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
public CurieProvider curieProvider() {
return new DefaultCurieProvider("black-market", new UriTemplate("http://localhost:8080/docs/api-guide.html#{rel}"));
}
开发者ID:vtsukur,项目名称:spring-rest-black-market,代码行数:5,代码来源:ApplicationConfiguration.java
示例7: curieProvider
import org.springframework.hateoas.hal.DefaultCurieProvider; //导入依赖的package包/类
@Bean
public CurieProvider curieProvider() {
return new DefaultCurieProvider("ex", new UriTemplate("http://localhost:8080/webapp/hypermedia-api/rels/{rels}"));
}
开发者ID:dschulten,项目名称:hydra-java,代码行数:5,代码来源:Config.java
注:本文中的org.springframework.hateoas.hal.DefaultCurieProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论