摘要: 图片转pdf,没用上,白写了一段代码,记录一下,为以后备用 加入依赖 <dependency> <groupId>org.apache.pdfbox</groupId> <artifactId>pdfbox</artifactId> <version>2.0.24</version> </depen 阅读全文
posted @ 2021-11-01 15:08 redos 阅读(717) 评论(0) 推荐(0)
摘要: 在登录完成后需要记录登录结果,其中一项包含客户端的IP地址,但是一直取不到值,通过排查发现,RequestContextHolder.getRequestAttributes()值为空,因为获取ip是在主线程进行的,所以排除线程共享的问题,然后互联网搜索了一下,需要加一段代码 @Bean publi 阅读全文
posted @ 2021-06-28 17:28 redos 阅读(6600) 评论(0) 推荐(0)
摘要: 1 git init 2 git add . 3 git commit -m "第一次提交" 4 git remote add origin https://github.com/qixlin/spring.git 5 git pull origin master --allow-unrelated 阅读全文
posted @ 2018-05-28 17:54 redos 阅读(116) 评论(0) 推荐(0)
摘要: 使用继承时,基类必须保证存在默认构造器(无参构造器),子类在实例化时,会首先自动调用隐式调用父类的无参构造器,允许子类与父类的构造器列表不一致,子类使用有参构造器实例化对象时,最好显式调用父类构造器,防止出错。 阅读全文
posted @ 2018-05-27 22:43 redos 阅读(343) 评论(0) 推荐(0)