SpringBoot之Starter相关说明

SpringBoot中封装好了一些列的Starter,把相应jar包的引用配置好,旨在降低搭建应用的难度;

比如通过搜Spring访问数据库可以使用,spring-boot-starter-data-jpa

 下面是SpringBoot中丰富的Starter列表:

Name描述
spring-boot-starter-thymeleafStarter for building MVC web applications using Thymeleaf views
spring-boot-starter-wsStarter for using Spring Web Services. Deprecated as of 1.4 in favor of spring-boot-starter-web-services
spring-boot-starter-data-couchbaseStarter for using Couchbase document-oriented database and Spring Data Couchbase
spring-boot-starter-artemisStarter for JMS messaging using Apache Artemis
spring-boot-starter-web-servicesStarter for using Spring Web Services
spring-boot-starter-mailStarter for using Java Mail and Spring Framework’s email sending support
spring-boot-starter-data-redisStarter for using Redis key-value data store with Spring Data Redis and the Jedis client
spring-boot-starter-webStarter for building web, including RESTful, applications using Spring MVC. Uses Tomcat as the default embedded container
spring-boot-starter-data-gemfireStarter for using GemFire distributed data store and Spring Data GemFire
spring-boot-starter-activemqStarter for JMS messaging using Apache ActiveMQ
spring-boot-starter-data-elasticsearchStarter for using Elasticsearch search and analytics engine and Spring Data Elasticsearch
spring-boot-starter-integrationStarter for using Spring Integration
spring-boot-starter-testStarter for testing Spring Boot applications with libraries including JUnit, Hamcrest and Mockito
spring-boot-starter-hornetqStarter for JMS messaging using HornetQ. Deprecated as of 1.4 in favor of spring-boot-starter-artemis
spring-boot-starter-jdbcStarter for using JDBC with the Tomcat JDBC connection pool
spring-boot-starter-mobileStarter for building web applications using Spring Mobile
spring-boot-starter-validationStarter for using Java Bean Validation with Hibernate Validator
spring-boot-starter-hateoasStarter for building hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS
spring-boot-starter-jerseyStarter for building RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web
spring-boot-starter-data-neo4jStarter for using Neo4j graph database and Spring Data Neo4j
spring-boot-starter-websocketStarter for building WebSocket applications using Spring Framework’s WebSocket support
spring-boot-starter-aopStarter for aspect-oriented programming with Spring AOP and AspectJ
spring-boot-starter-amqpStarter for using Spring AMQP and Rabbit MQ
spring-boot-starter-data-cassandraStarter for using Cassandra distributed database and Spring Data Cassandra
spring-boot-starter-social-facebookStarter for using Spring Social Facebook
spring-boot-starter-jta-atomikosStarter for JTA transactions using Atomikos
spring-boot-starter-securityStarter for using Spring Security
spring-boot-starter-mustacheStarter for building MVC web applications using Mustache views
spring-boot-starter-data-jpaStarter for using Spring Data JPA with Hibernate
spring-boot-starterCore starter, including auto-configuration support, logging and YAML
spring-boot-starter-velocityStarter for building MVC web applications using Velocity views. Deprecated since 1.4
spring-boot-starter-groovy-templatesStarter for building MVC web applications using Groovy Templates views
spring-boot-starter-freemarkerStarter for building MVC web applications using FreeMarker views
spring-boot-starter-batchStarter for using Spring Batch
spring-boot-starter-redisStarter for using Redis key-value data store with Spring Data Redis and the Jedis client. Deprecated as of 1.4 in favor of spring-boot-starter-data-redis
spring-boot-starter-social-linkedinStater for using Spring Social LinkedIn
spring-boot-starter-cacheStarter for using Spring Framework’s caching support
spring-boot-starter-data-solrStarter for using the Apache Solr search platform with Spring Data Solr
spring-boot-starter-data-mongodbStarter for using MongoDB document-oriented database and Spring Data MongoDB
spring-boot-starter-jooqStarter for using jOOQ to access SQL databases. An alternative to spring-boot-starter-data-jpa or spring-boot-starter-jdbc
spring-boot-starter-jta-narayanaSpring Boot Narayana JTA Starter
spring-boot-starter-cloud-connectorsStarter for using Spring Cloud Connectors which simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku
spring-boot-starter-jta-bitronixStarter for JTA transactions using Bitronix
spring-boot-starter-social-twitterStarter for using Spring Social Twitter
spring-boot-starter-data-restStarter for exposing Spring Data repositories over REST using Spring Data REST

 

SpringBoot生产环境中监控的一些Starter引用;

Name描述
spring-boot-starter-actuatorStarter for using Spring Boot’s Actuator which provides production ready features to help you monitor and manage your application
spring-boot-starter-remote-shellStarter for using the CRaSH remote shell to monitor and manage your application over SSH

SpringBoot中一些初学者使用到的Starter,如下

Name描述
spring-boot-starter-undertowStarter for using Undertow as the embedded servlet container. An alternative to spring-boot-starter-tomcat
spring-boot-starter-jettyStarter for using Jetty as the embedded servlet container. An alternative to spring-boot-starter-tomcat
spring-boot-starter-loggingStarter for logging using Logback. Default logging starter
spring-boot-starter-tomcatStarter for using Tomcat as the embedded servlet container. Default servlet container starter used by spring-boot-starter-web
spring-boot-starter-log4j2Starter for using Log4j2 for logging. An alternative to spring-boot-starter-logging

 

转载于:https://my.oschina.net/boreboluomiduo/blog/866522

引用提到的错误信息"No qualifying bean of type 'xxx' available"通常出现在使用SpringContextHloder#getBean()方法时,说明Spring容器中找不到对应类型的bean。这可能是由于配置问题导致的。引用指出,你的项目使用的是mybatis-spring-boot-starter的1.0版本。而引用提到,如果你非要使用1.0.0版本的mybatis-spring-boot-starter,那么你的spring-boot-starter-parent必须调低版本。 要解决这个问题,你可以尝试以下步骤: 1. 确认你的Spring配置文件中是否正确配置了相关的bean。可以检查bean的定义和注入方式。 2. 检查你的pom.xml文件,确认引入的mybatis-spring-boot-starter版本与其他依赖项的版本兼容。如果版本不兼容,可能会导致bean无法注入。 3. 如果你确实需要使用1.0.0版本的mybatis-spring-boot-starter,那么根据引用所说,你需要将spring-boot-starter-parent的版本调低。在pom.xml文件中修改parent标签下的版本号为一个低于1.5.19.RELEASE的版本。 4. 如果上述步骤仍然无法解决问题,可能是其他配置或依赖项的问题。你可以尝试查看日志文件或调试代码,以找出更具体的错误信息。 总结来说,当出现"no qualifying bean of type"的错误时,通常是由于Spring容器无法找到对应类型的bean导致的。你可以检查配置、版本兼容性和其他相关问题来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [使用SpringBoot获取bean时出错:No qualifying....](https://blog.csdn.net/QINGZHID/article/details/117369243)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [springboot整合mybatis报 NO qualifying bean of type 'com.jvtd.mapper.auth.AdminUserMapper' 把我坑了1...](https://blog.csdn.net/qq_17231297/article/details/82219502)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值