最新回答 / Commander_yi
可以用jpa的like关键字查询,比如@Query(value = "select * from search_key a where a.key_name like CONCAT('%',:keyName,'%') limit 1", nativeQuery = true)List<SearchKey> findByKeyNameLimit(@Param("keyName") String keyName);
2017-11-29
Error creating bean with name 'helloController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cupSize' in string value "${cupSize}" 解决方法,把yml文件替换成下面的就o啦,server:
port: 8080
context-path: /girl
cupSize: B
age: 18
port: 8080
context-path: /girl
cupSize: B
age: 18
2017-11-29
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>1.5.4.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
<version>1.5.4.RELEASE</version>
</dependency>
2017-11-28