- 博客(5)
- 收藏
- 关注
原创 Spring boot 国际化 国际化信息存放到HTTP Header中
1、编写LocaleResolver实现类import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;import org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver;import javax.servlet.http.Ht...
2019-09-09 16:23:29
3677
原创 解决Spring boot 单元测试,无法读取配置文件问题。
首先,测试类要加注解表示该类是一个测试类,默认会加载resource文件夹下的配置文件。如果想要指定配置文件:@TestPropertySource("classpath:pay.properties")深渊巨坑:spring boot 2,在进行单元测试的时候,不支持.yml文件!!!至文章日期,还未解决。用yml文件的小伙伴别折腾了,测试文件夹下放一个prope...
2019-08-29 19:51:44
15854
7
原创 Spring-Mybatis整合时,无法连接数据库,Cannot create PoolableConnectionFactory
今天在用mybatis和Spring进行整合的时候,遇到了一个问题,明明 数据源配置正确,org.mybatis.spring.SqlSessionFactoryBean也配置正确,mapper扫描也已经开启,但是却一直报错Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNe
2017-11-23 11:17:18
38402
原创 Python3 Requests库 post请求 报错 requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
Python,爬虫,Requests
2017-11-22 17:40:56
9301
原创 Selenium 错误 Element is not clickable at point (x, y). Other element would receive the click
在使用Selenium 进行抓取网页的时候,对网页中 按钮或者超链接 进行点击的时候,往往会遇到下列问题:Traceback (most recent call last): File "F:/Python_work/PyReview/jnta.py", line 24, in WebDriverWait(driver, 10).until(EC.element_to_be_
2017-11-09 15:09:08
3077
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人