logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

springboot中logback-spring.xml日志输出文件

<?xml version="1.0" encoding="UTF-8"?><!-- scan 配置文件如果发生改变,将会被重新加载 scanPeriod 检测间隔时间 BY 科帮网 小柒2012 欢迎关注博客https://blog.52itstyle.com--><configuration scan="true" scanPeriod="60 second...

mysql和oracle的sql中去掉字符串前面的0

mysql将数据库中手机号前面的0去掉UPDATE appealSET phone = substring( phone, 2, LENGTH( phone ) - 1 )WHERELENGTH( phone ) > 11或者select cast(tt as UNSIGNED) from test;如果是身份证号就只能先转成数字在转成字符串oracle数据库中:去除字符串前面或者后面多余的

#数据库#mysql#oracle +1
linux 当前用户目录没有.ssh文件

当前用户下没有.ssh文件夹:解决办法:ssh localhost上面命令在当前用户目录下执行一次,问题就解决了。原因:.ssh 是记录密码信息的文件夹,如果没有登录过root的话,就没有 .ssh 文件夹,因此登录 localhost ,并输入密码就会生成了。...

#linux#ssh#centos
mybatis批量插入list切割list算法

int totalNum = 9;int batchCommitNumber=10;int subListNum= totalNum/batchCommitNumber;List<Integer> collect = IntStream.range(0, 9).boxed().collect(Collectors.toList());for (int j = 0; j < sub

#java
SpringBoot-----读取xml配置bean(@ImportResource)

1、应用场景旧框架SSM项目移行到SpringBoot中,xml配置文件很齐全,就可以省去配置的麻烦,直接读取旧xml文件2、spring-common.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"...

springboot项目中@PathVariable中get请求中有|报400错误

http://localhost:9105/publishTheme/ST0821122|461后端直接改成这种也没用,除非前端也得做加码才可以@GetMapping("/{id}")public Object getPublishTheme(@PathVariable String id) {Map<String,Object> params= new HashMap<Stri

#java#spring
spring项目中引入aop不能有private constructors否则报错:No visible constructors in class com.xxx.xxx.controller.

Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.pactera.elasticsearch.controller.EsController]: Common causes of this problem inc

#spring#java
【oracle】sqlplus用户切换:普通用户切换到sysdba用户

oracle sqlplus用户今天突然想记录一下,之前被一个很基础的小操作困扰,使用sysdba用户登录到sqlplus后切换到普通用户一般使用conn方式,那怎么切回sysdba用户呢?$ sqlplus / as sysdbaSQL> show user切换到普通用户SQL> conn test/123查看当前用户SQL> show user切换到sysd...

使用Druid连接oracle时报SQLException: not support oracle driver5.1

2018-12-2916:17:10.600[main]ERRORc.alibaba.druid.pool.DruidDataSource836-{dataSource-1}initerror java.sql.SQLException:...复制2018-12-2916:17:10.600[main]ERRORc.alibaba.druid.pool.DruidDataSource836-{da

文章图片
#mysql#oracle
spring读取resources文件夹下的文件报错:cannot be resolved to absolute file path because it dose not reside in th

在做一个项目的上传功能的时候,需要提供上传文件的模板下载功能,后端的实现方式是:将模板文件放在resources文件夹下,然后提供一个接口,接口中读取resources文件夹下的模板文件,并通过文件流写出给浏览器。但是,恰恰就是因为这个问题,导致了文件无法读取到。因为我们是以jar包的方式部署的项目,模板文件被打到了jar包里,这个api是无法将jar包中的文件直接读取出来的,所以才会出现标题中提

文章图片
#spring#java#后端
    共 93 条
  • 1
  • 2
  • 3
  • 10
  • 请选择