
Spring Boot
LuckyTHP
这个作者很懒,什么都没留下…
展开
-
Springboot项目拦截器中获取到请求参数后,controller获取不到-解决
springboot原创 2022-12-14 15:26:03 · 1787 阅读 · 0 评论 -
Failed to create/setup connection: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接
问题:springboot 用druid连接SqlServer时出现“Failed to create/setup connection: 驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接”问题解决:缺少连接sqlserver数据库需要使用驱动jar包只需要把jar放到jre/lib/ext目录下即可。sqljdbc42.jar上面地址可能会失效,失效了去https://mvnrepository.com/搜即可参考链接:https://blog.csdn.ne原创 2022-06-20 10:20:24 · 1063 阅读 · 0 评论 -
object references an unsaved transient instance – save the transient instance before flushing
错误原因:@ManyToOne(cascade = {CascadeType.REFRESH}, fetch = FetchType.LAZY)@JoinColumn(name="depart_id")@NotFound(action = NotFoundAction.IGNORE)private HumDepartEntity departEntity;这个异常是在ManyToOne级联操作时遇到,要保存的对象引用了一个未保存的对象,比如我们试图存储一个瞬时状态的对象。也就是说,A和B有关联的原创 2022-03-18 15:28:07 · 814 阅读 · 0 评论 -
SpringData JPA利用Specification实现多条件查询
SpringData JPA遵循Eric Evans在Domain Driver Design一书中的规范,让你可以使用编程方式来构建多条件查询。开始创建实体类:Blog@Entity(name = "t_blog")@Data@AllArgsConstructor@NoArgsConstructorpublic class Blog implements Serializable { private static final long serialVersionUID = 1L;原创 2022-03-16 16:05:28 · 701 阅读 · 0 评论 -
springboot项目启动报错Failed to configure a DataSource: 'url' attribute is not specified and no embedde
***************************APPLICATION FAILED TO START*************************** Description: Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could...原创 2018-10-31 15:04:23 · 7110 阅读 · 3 评论