website
wss_desperado
这个作者很懒,什么都没留下…
展开
-
node & npm
npm 查看npm、node版本: npm -vnode -v 错误:Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime 错误描述:需要更新版本 解决方法: npm uninstall --save node-sass cnpm install --save--dev node-sass node版本管理:安...原创 2021-05-11 16:49:00 · 72 阅读 · 0 评论 -
sudo xxx command not found
问题描述:xxx命令可以运行,sudo xxx 报错解决方法:建立root用户目录和普通用户目录的符号链接(软链接)输入which xxx获取普通用户目录 地址A sudo ln -s 地址A /usr/bin/xxx ln命令用来为文件创件连接,连接类型分为硬连接和符号连接两种,默认的连接类型是硬连接。如果要创建符号连接必须使用"-s"选项。符号链接文件不是一个独立的文件,它的许多属性依赖于源文件,所以给符号链接文件设置存取权限是没有意义的参考:https://blo...原创 2021-05-11 16:29:00 · 121 阅读 · 0 评论 -
git push: You are not allowed to push code to this project
出现原因:没有gitLAB权限 由于电脑以前归属于其他人,git配置未修改解决方法: 查看当前提交代码的用户 # 查看推送的用户 ssh -T git@git.workec.com 查看用户名和邮箱地址 git config user.namegit config user.email 修改全局用户名和邮箱地址: git config --global user.name "username" git config --global user.e...原创 2021-05-08 14:28:59 · 231 阅读 · 0 评论 -
nested exception is org.apache.ibatis.binding.BindingException: Parameter ‘XXX‘ not found
错误原因:*mapper.xml映射没有得到传入的参数解决方法:使用DAO层注解@Param(*Mapper.java文件)public List<SceneData> findSceneData(@Param("business") String business, @Param("app")String app, @Param("title") String title, @Param("status") String status, @Param("author") String原创 2021-05-07 12:05:02 · 73 阅读 · 0 评论 -
Springboot + Mybatis: 返回时间格式错误(多了.0)
错误描述:在数据库中存储的数据是正确的,但读取后的时间最后多了".0"解决方法:在定义数据类型时把时间定义为Date类型 添加注释@JsonFormat@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")private Date createTime;注意,此时默认为0时区,需要修改时区...原创 2021-05-07 11:55:48 · 1440 阅读 · 0 评论 -
制作自己的网站(一)—— CentOS 7
一、搭建LAMP环境yum update yum install -y httpd //安装apachehttpd -v //查看apache版本yum -y install gccyum -y install gcc-c++systemctl start httpd.service ...原创 2019-05-20 22:06:01 · 691 阅读 · 0 评论