jetcache icon indicating copy to clipboard operation
jetcache copied to clipboard

Spring Boot 2.1.4 在application.yml文件中提示 Unknown property 'jetcache'

Open ankeway opened this issue 5 years ago • 4 comments

Spring Boot 2.1.4.Release

	<!-- https://mvnrepository.com/artifact/com.alicp.jetcache/jetcache-starter-redis-lettuce -->
	<dependency>
	    <groupId>com.alicp.jetcache</groupId>
	    <artifactId>jetcache-starter-redis-lettuce</artifactId>
	    <version>2.5.12</version>
	</dependency>

在application.yml文件中提示 Unknown property 'jetcache' image

ankeway avatar Apr 26 '19 09:04 ankeway

你这是IDE里面的提示吗?别理它,它又不支持jetcache

areyouok avatar Apr 27 '19 02:04 areyouok

你这是IDE里面的提示吗?别理它,它又不支持jetcache 对STS, 不过Spring Boot里要是能有对应到配置文件,或者 META-INF里有additional-spring-configuration-metadata.json 这里应该可以提示出来,并且能点进去找到对应的配置文件。JetCacheProperties里的确也有@ConfigurationProperties(prefix = "jetcache")

ankeway avatar Apr 28 '19 01:04 ankeway

建议jetcache支持在spring boot yml中进行语法提示,就是使用@Configuration、@ConfigurationProperties指定配置

edhn3000 avatar Jun 06 '19 08:06 edhn3000

我也发现这个问题,这点很不友好,这跟ide没多大关系,我eclipse也不会自动提示,这个加入一个jar包就能自动生成的 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency>

tnessn avatar Sep 01 '21 03:09 tnessn