- 博客(7)
- 资源 (6)
- 收藏
- 关注
原创 mongodb安装
1.下载MongoDB所需要的二进制文件可以通过 官网下载https://www.mongodb.com/download-center/enterprise2.解压下载的文件可以双击打开解压 也可以通过命令行方式解压:tar -zxvf mongodb-macos-x86_64-4.2.1.tgz3.将解压后的文件复制到目标目录这一步不是必须的,但是为了方便运行最好还是将降压后的文件放到自己容易找到的位置:mkdir -p mongodbcp -R -n mongodb-macos-x8
2020-12-15 19:38:27
106
原创 macos下安装openresty遇到的坑
1、使用国内镜像/bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”按照提示下一步执行就好2、遇到问题Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!*解决方案:*执行命令rm -rf /Users/$(whoami)/Library/Caches/Home
2020-08-04 17:31:43
1862
原创 mysql8.x创建用户以及授权
#Java后端直接在xml文件中使用update执行语句1: CREATE USER ‘henry’@’%’ IDENTIFIED by ‘123456’;2: grant all privileges on test_db_1.* to ‘henry’@’%’ with grant option;3: alter user ‘henry’@’%’ identified with mysql_native_password by ‘123456’;...
2020-08-04 16:49:13
275
转载 quartz定时任务cron表达式
cron表达式用于配置cronTrigger的实例。cron表达式实际上是由七个子表达式组成。这些表达式之间用空格分隔。1.Seconds (秒)2.Minutes(分)3.Hours(小时)4.Day-of-Month (天)5.Month(月)6.Day-of-Week (周)7.Year(年)例:"0 0 12 ? * WED” 意思是:每个星期三的中午12点执行。...
2019-01-10 16:54:40
157
原创 spring mvc 引入swagger2.4后,junit测试异常
spring版本为<spring.version>4.2.5.RELEASE</spring.version> 解决办法: 单元测试中加入注解@WebAppConfiguration@RunWith(SpringJUnit4ClassRunner.class)@WebAppConfiguration@ContextConfiguration(locations = "classpath:ap
2017-07-18 16:13:18
711
转载 SpringMvc参数传递中乱码问题的解决
问题描述:当传递中文参数到controller类时,无乱是get方式还是post方式都出现乱码解决:1、保证所有的页面编码都是utf-8,包括jsp页面,浏览器编码设置和eclipse的编码设置。2、spingmvc给我们提供了一个编码过滤器,只需要在配置文件web.xml中加入即可。如下: 1 filter> 2 filter-n
2017-07-12 15:48:23
334
原创 spring mvc配置json转换器,jar包冲突导致配置无效
com.fasterxml.jackson.dataformatjackson-dataformat-xml2.4.2去掉这个jar包依赖后配置生效!下面是配置的json转换器class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">ap
2017-07-12 15:40:18
730
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人