boot

Spring Boot Client Failed to register with Admin

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an Spring Boot Admin server running just fine. Here are the files: pom.xml <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <java.version>1.8</java.version> <spring-boot-admin.version>2.1.0</spring-boot-admin.version> </properties> <dependencies> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server</artifactId> </dependency> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin

Spring boot-Exception in thread “main” java.lang.NoSuchMethodError: org.springframew..(Version Issue)

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am getting Exception while running server .I know it is version issue of Spring boot and spring-cloud . But I am using spring boot 1.4.2.RELEASE and currently spring cloud using Finchley.SR1 . What is suitable version of spring cloud with spring boot 1.4.2.RELEASE? Getting exception below: Exception in thread "main" java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Class;)V at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext

Elasticsearch 5.x Repository Java Spring Boot

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I want to use the elasticsearchrepository with Java Spring Boot: https://github.com/spring-projects/spring-data-elasticsearch It is not a RELEASE version, but should work for elasticsearch 5.4.0. I'm using ELK stack 5.x. I have the following pom.xml dependencies: <repositories> <repository> <id>elasticsearch-releases</id> <url>https://artifacts.elastic.co/maven</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> <dependency> <groupId>org.elasticsearch</groupId> <artifactId

Exporting Spring Boot Actuator Metrics (&amp; Dropwizard Metrics) to Statsd

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm trying to export all of the metrics which are visible at the endpoint /metrics to a StatsdMetricWriter . I've got the following configuration class so far: package com . tonyghita . metricsdriven . service . config ; import com . codahale . metrics . MetricRegistry ; import com . ryantenney . metrics . spring . config . annotation . EnableMetrics ; import org . slf4j . Logger ; import org . slf4j . LoggerFactory ; import org . springframework . beans . factory . annotation . Autowired ; import org . springframework . beans .

Transactional annotation not working in Spring Boot

匿名 (未验证) 提交于 2019-12-03 01:23:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: @Transactional not working in Spring Boot. Application.java : @EnableTransactionManagement ( proxyTargetClass = true ) @SpringBootApplication ( exclude = { ErrorMvcAutoConfiguration . class }) public class Application { @Autowired private EntityManagerFactory entityManagerFactory ; public static void main ( String [] args ) { System . out . println ( "--------------------------- Start Application ---------------------------" ); ApplicationContext ctx = SpringApplication . run ( Application . class , args ); } @Bean public

Spring Boot with JSF; Could not find backup for factory javax.faces.context.FacesContextFactory

匿名 (未验证) 提交于 2019-12-03 01:17:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having some problems with Spring Boot and JSF. The servlet appears to start up correctly, but when I attempt to access a resource I get the following exception java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory. at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1011) at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:343) at javax.faces.webapp.FacesServlet.init(FacesServlet.java:302) at org.apache.catalina.core.StandardWrapper.initServlet

java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Properties

匿名 (未验证) 提交于 2019-12-03 01:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: @Configuration @EnableTransactionManagement public class DataSourceConfig { @Bean(destroyMethod = "shutdown") public DataSource dataSource(){ EmbeddedDatabaseBuilder databaseBuilder = new EmbeddedDatabaseBuilder(); databaseBuilder.setType(EmbeddedDatabaseType.H2); databaseBuilder.addScript("classpath:db/migration/V1__Create_Books_Table.sql"); databaseBuilder.addScript("classpath:db/migration/V2__Add_Books.sql"); return databaseBuilder.build(); } @Bean public JpaVendorAdapter vendorAdapter(){ HibernateJpaVendorAdapter vendorAdapter = new

Cannot find class org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration]

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: While running Spring Boot application I am getting this issue: Exception in thread "main" java.lang.IllegalArgumentException: Cannot find class [org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration] at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:287) at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:176) at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent

org.springframework.boot.orm.jpa.EntityScan on Spring Boot 1.5.0-snapshot

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: The EntityScan class has removed from SpringBoot 1.5.0-SNAPSHOT, When i change to 1.3.0-SNAPSHOT version, EntityScan exist. i must add another dependancy to use EntityScan with SpringBoot 1.5.0-SNAPSHOT ? https://github.com/spring-projects/spring-boot/issues/8231 回答1: Please read the release notes: https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.4-Release-Notes#entityscan : The @org.springframework.boot.orm.jpa.EntityScan annotation has been deprecated and should be replaced with @org.springframework.boot.autoconfigure