Package 

Class PoetAutoConfiguration

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Configuration()@ConditionalOnSingleCandidate(value = DataSource.class)@AutoConfigureAfter(value = {DataSourceAutoConfiguration.class}) 
    public final class PoetAutoConfiguration
     implements InitializingBean
                        
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit afterPropertiesSet()
      final PoetAccessRouter poetAccessRouter(@Nullable() PoetAnnexSlicer slicer)
      final PoetAnnexRepository poetAnnexRepository(@NotNull() JdbcTemplate jdbcTemplate) 默认使用MySQL数据库 使用其他数据库的需要自行配置
      final PoetAnnexClient poetAnnexClient(PoetAccessRouter poetAccessRouter)
      final PoetAnnexClientHttpSupport poetAnnexClientHttpSupport(@NotNull() PoetAnnexClient client, @NotNull() PoetAccessRouter poetAccessRouter)
      final PoetAnnexContext poetAnnexContext(PoetAnnexClient poetAnnexClient, @Nullable() PoetAnnexClientHttpSupport poetAnnexClientHttpSupport, @Nullable() PoetAnnexRepository poetAnnexRepository, @Nullable() PoetAnnexNameGenerator nameGenerator)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PoetAutoConfiguration

        PoetAutoConfiguration()
    • Method Detail

      • poetAccessRouter

        @Bean()@ConditionalOnMissingBean() final PoetAccessRouter poetAccessRouter(@Nullable() PoetAnnexSlicer slicer)
      • poetAnnexRepository

        @Bean()@ConditionalOnMissingBean()@ConditionalOnProperty(name = {"poet.enableDBStore"}, havingValue = "true") final PoetAnnexRepository poetAnnexRepository(@NotNull() JdbcTemplate jdbcTemplate)

        默认使用MySQL数据库 使用其他数据库的需要自行配置

      • poetAnnexClient

        @Bean()@ConditionalOnMissingBean()@ConditionalOnProperty(name = {"poet.storeMode"}, havingValue = "LOCAL") final PoetAnnexClient poetAnnexClient(PoetAccessRouter poetAccessRouter)
      • poetAnnexClientHttpSupport

        @Bean()@DependsOn(value = {"poetAnnexClient"})@ConditionalOnMissingBean()@ConditionalOnProperty(name = {"poet.storeMode"}, havingValue = "LOCAL") final PoetAnnexClientHttpSupport poetAnnexClientHttpSupport(@NotNull() PoetAnnexClient client, @NotNull() PoetAccessRouter poetAccessRouter)
      • poetAnnexContext

        @Bean()@ConditionalOnMissingBean() final PoetAnnexContext poetAnnexContext(PoetAnnexClient poetAnnexClient, @Nullable() PoetAnnexClientHttpSupport poetAnnexClientHttpSupport, @Nullable() PoetAnnexRepository poetAnnexRepository, @Nullable() PoetAnnexNameGenerator nameGenerator)