czp3009 / blog Goto Github PK
View Code? Open in Web Editor NEWpersonal blog
License: GNU General Public License v3.0
personal blog
License: GNU General Public License v3.0
当我们写好一个 Telegram Bot 之后, 把它拉到一个群里, 然后在群里发一条命令, 机器人马上就收到了命令.但是我们在群里发送一个普通消息(不以 / 开头的消息), 我们发现机器人没有收到这条消息.我们私聊机器人, 机器人是能收到消息的. 换一个群, 依然收不到普通群聊消息, 但是能收到群里发的命令(命令一定是以 / 开头的).这个问题是由于 Telegram Bot 的 privacy
环境: Spring Boot 2.0.5.RELEASE一般来说, 程序运行所必须的资源文件我们会一起打包到 jar. 那么接下去我们就要读取这个资源文件.假定我们的资源文件在源码目录中为 src/main/resources/myFile.txt在 Spring Boot 中读取存放在 classpath 的资源文件通常是这么做的1val myFile = ClasspathResource(
环境: Spring Boot 2.1.0.RELEASE有的时候我们不得不把一个单页应用(例如 react-router)与 Spring-Boot 后端一起打包. 但是这样就会有一个问题, 一旦用户刷新页面, 就会看到一个 404 画面, 因为服务端并没有把请求转向 index.html.所以我们通过一些配置, 让 Spring 的找不到对应的资源文件的情况下, 将请求统统转向到 index.
https://www.hiczp.com/2018/10/16/java/%E6%AD%A3%E7%A1%AE%E6%89%93%E5%8C%85Spring-Boot%E5%88%B0war/
环境: Spring-Boot 2.0.5.RELEASE | gradle 4.10.2众所周知, Spring Boot 在开发时之所以能直接启动, 是因为内置了 tomcat. 同时这也使得 Spring Boot 可以直接输出为可执行的 jar 文件.那么问题来了, 如果我们需要将应用打包为 war 文件并部署到外部的 tomcat 服务器怎么办.在 Google 搜索这个问题, 就会看到
环境: Ubuntu Desktop 18.04众所周知, Linux 的文件打开数量限制是用 ulimit -n 命令查看的.$ ulimit -n 1024 然后我们就会发现默认只有 1024.然后我们按照人云亦云的办法, 去修改 /etc/security/limits.conf, 在文件末尾增加如下两行
https://www.hiczp.com/2018/09/28/php/%E6%AD%A3%E7%A1%AE%E8%B0%83%E8%AF%95PHP/
环境: Ubuntu 18.04 | PHPStorm 2018.2.3 | PHP 7.2.10之前在 Google 搜索 PHPStorm xdebug, 结果搜到的中文结果里, 全是用什么 PHPStorm 的 Server 设置, 然后一阵眼花缭乱的配置, 说道, 调试 PHP 很简单.实际上 PHPStorm 文档中已经写的很明确了, 调试 PHP 不需要任何配置 https://www
https://www.hiczp.com/2018/09/27/Linux/Ubuntu%E4%B8%8B%E4%BD%BF%E7%94%A8zsh/
环境: Ubuntu 18.04 | zsh 5.4.2久闻 zsh 大名, 但是一直没有用过, 因为听说配置起来很麻烦.直到最近听说了 oh-my-zsh (早就有了), 据称它可以几乎零配置, 所以我们今天就来试一试它.安装 zshoh-my-zsh 只是 zsh 的自动配置脚本, 我们得首先安装 zsh.
https://www.hiczp.com/2018/10/10/java/Spring-Boot-Jpa%E4%BD%BF%E7%94%A8Google-Cloud-SQL/
环境: Spring-Boot-Data-Jpa 2.0.5.RELEASE编写使用 Google Cloud SQL 的应用时, 我们会发现一个问题. 当我们连接 Cloud SQL 时, 我们必须先知道 Cloud SQL 的 IP, 同时还要到 Google Cloud Console 给自己的应用所部署的服务器加数据库白名单(如果是部署在同一项目下的 APP Engine 或者 Compu
环境: spring-boot 2.0.5.RELEASE当我们在进行 Spring Boot 开发时, REST 接口的默认返回类型是 json, 使用的序列化库为 jackson.而 Spring Boot 内部使用的 ObjectMapper 是在 MappingJackson2HttpMessageConverter 里被配置好的. 于是问题就来了, 我们想要使用更多的 Jackson M
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.