- 博客(7)
- 收藏
- 关注
原创 SpringBoot项目中使用Spring-data-jpa启动时报错Could not fetch the SequenceInformation from the database
在写一个简单的SpringBatch项目时出现了如下报错:2021-04-16 09:03:17.085 ERROR 26864 --- [ main] o.h.e.j.e.internal.JdbcEnvironmentImpl : Could not fetch the SequenceInformation from the databasejava.sql.SQLException: 数字溢出 at oracle.jdbc.driver.NumberCommo...
2021-04-16 11:38:14 5500 2
原创 spring.sleuth.sampler.percentage=1不生效问题
自己学习Spring-Cloud结合zipkin跟踪请求的例子,发现设置spring.sleuth.sampler.percentage=1之后没有生效,后来百度发现需要设置为spring.sleuth.sampler.probability=1,这是由于我使用的spring-cloud版本太新的原因。我使用的Spring-Cloud版本为Greenwich.M1。...
2019-01-01 18:26:38 3836 1
原创 Spring通过@Value注解注入系统属性
自己写了一个Spring注解方式注入系统属性的test,成功注入自定义的系统属性。Model类定义package cn.lin.luo.tian.profile;import org.springframework.beans.factory.annotation.Value;import org.springframework.stereotype.Component;@Com...
2018-10-17 11:09:46 1498
原创 关于无法通过ftpClient创建文件夹的问题
今天在通过ftpClient在linux服务器上目录A下创建文件夹以及进行文件上传操作时,发现了无法创建新文件夹,最初以为是vsftpd设置的问题,但是根据百度搜索的答案进行设置,都没有效果。后来发现我以前设置的一个目录B下能够正常的通过ftpClient创建文件夹和上传文件。通过对比,发现了两个文件夹的区别是(假定使用ftpClient进行上传操作的用户为ftpuser):能够正常创建文件夹的目...
2018-07-08 17:42:54 8432
原创 Ajax + SpringMVC页面加载时从后台请求数据
请求url直接使用springMVC请求路径: <script th:inline="javascript"> $(document).ready(function(){ $.ajax({ type:"GET", url:"news/getKeyWords", s...
2018-05-19 19:13:47 2763
原创 Spring boot html中无法读取本地图片
需要设置spring boot的静态资源路径,具体为在application.properties中添加:spring.resources.static-locations='静态资源路径'如以下配置指定了类路径作为静态资源路径:spring.resources.static-locations=classpath:/如果我的图片qiaoba.jpeg放在了src/main/resoruces/i...
2018-04-24 17:15:30 10039 4
原创 Spring-Security报错
Circular view path [ ]: would dispatch back to the current handler URL again。在网上查看到很多都是说视图配置的问题,但是发现如果是使用thymeleaf的html文件,但是pom文件中缺少thymeleaf的dependency的话也会出现这个问题.解决,加: <dependency> ...
2017-12-25 23:56:44 309
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人