- 博客(9)
- 收藏
- 关注
原创 mybatis里使用like sql语句
错误sql:<select id="getInfoList" parameterType="java.lang.String" resultMap="ebikeInfoMap"> <include refid="selectAll"/> from hm_virtual_devices_info <where>vehicle_version like %#{vehicleVersion, jdbcType=VARCHAR}% and status=0</where&g
2020-09-22 11:57:21 1093
原创 python使用报错ModuleNotFoundError: No module named ‘requests‘
原因:未安装第三方库requests使用pip安装requests:pip install requests若提示-bash: pip: command not found,则表示未安装pip安装pip:curl https://bootstrap.pypa.io/get-pip.py -o get-pip.pysudo python3 get-pip.py查看pip:安装的python3,如果是python2使用 pip--versionpip3 --version.
2020-09-03 15:31:58 185
原创 springboot多个子工程配置文件共享需以application-xx命名
工程分级为all-projecta-projectb-projectc-projecta-project为工程启动入口,那么a工程的配置文件为application.yml或application.properties,其它工程的配置文件需要命名为application-xx.yml或application-xx.properties,如b工程配置文件需命名application-b.y...
2019-08-10 21:54:52 1263
原创 Spring配置context base-package错误
在启动Spring工程时,报错如下Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/didi/.m2/repository/org/spri...
2019-08-10 21:46:54 807
转载 netty ChannelOption用到的socket的标准参数
ChannelOption.SO_BACKLOG, 1024 BACKLOG用于构造服务端套接字ServerSocket对象,标识当服务器请求处理线程全满时,用于临时存放已完成三次握手的请求的队列的最大长度。如果未设置或所设置的值小于1,Java将使用默认值50。ChannelOption.SO_KEEPALIVE, true 是否启用心跳保活机制。在双方TCP套接字建立连接后(即都...
2019-08-10 21:33:15 149
原创 安装python3
mac自带python2版本,python3新技能不能使用1、安装homebrew(传说这是个mac安装神器),输入下面命令即可/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装成功后如下提示:2、安装python3brew search...
2019-05-22 12:16:11 473
原创 Linux里发curl命令模拟http get/post请求
网络互通的情况下,直接使用postman发get/post请求很方便,但是在网络不能直连情况下,得借助远程登录去访问,这时postman就不好使了,这时可以远程到机器使用curl命令发请求GET-X GET可省略,-H header, 带参数在url里&拼接1、get不带参数curl -X GET http://ip:port/my/user/info或 直接省略-Xcu...
2019-04-17 20:51:03 585
原创 testNG与Spring集合别忘了@ContextConfiguration
1、使用testNG测试,简单使用只需要在pom文件里引入jar包,如下<dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <scope>test</...
2019-02-28 17:06:05 1458
原创 Spring @service自动装配失败
classA里定义了一些属性,使用@service自动装配beanclassB使用A,使用@Autowired注入,运行后报错严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionLis...
2019-02-27 17:57:57 2034
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人