![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring boot
文章平均质量分 54
springTen
这个作者很懒,什么都没留下…
展开
-
Spring Boot Jpa 自定义SQL
Spring Boot Jpa 自定义SQL 自定义查询语句的几种方式 使用@Query注解public interface UserRepository extends JpaRepository<User, Long> { @Query("select u from User u where u.emailAddress = ?1") User findByEmailAddress(String emailAddress); } 模糊查询public interface User原创 2021-01-14 10:44:50 · 674 阅读 · 0 评论 -
Spring 中的 @PathVariable 和 @RequestParam
转自:https://blog.csdn.net/ckc_666/article/details/79239974 @PathVariable 映射 URL 绑定的占位符 带占位符的URL是Spring3.0新增的功能,该功能在SpringMVC 向REST目标挺进发展过程中具有里程碑的意义 通过@PathVariable可以将URL中占位符参数绑定到控制器处理方法的入参...转载 2019-04-10 14:59:05 · 46 阅读 · 0 评论 -
springcloud client 向server注册服务时报错
spring cloudcom.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect 不知为何这种方式会报错 #eureka: # client: # register-with-eureka: true # fetch-re...原创 2019-04-15 16:46:57 · 319 阅读 · 0 评论 -
An error happened during template parsing (template: "class path resource [templates/main/index.html
想一想 @{}加了吗???????? 再犯这样的错误就别搞IT了。 哼!原创 2019-04-09 15:01:54 · 3269 阅读 · 0 评论 -
springboot @EnableWebMvc, 基于Java配置,自定义实现spring MVC配置
package com.lzz.springbootsecondkill.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.ann...原创 2019-04-25 10:45:49 · 232 阅读 · 0 评论