筛选符合条件 2013年05月 的结果:1104

  • MySQL关联表更新02
    Tonkong 2020-10-24 20:51:47

    mysql 关联表更新,根据b表里的外键a_id字段更新冗余字段a.b_name=a.name。 ```sql update b b, a a set b.b_name = a.name where b.a_id = a.id ```

    php+mysql MySQL 0 234 0
  • tk.mybaits报错
    Tonkong 2020-10-22 17:08:08

    使用tk.mybatis的mapper时,where条件一直包找不到属性,属性是枚举类型。 报错信息: tk.mybatis.mapper.MapperException: 当前实体类不包含名为quType的属性 必须在model的该字段上加注解 @ColumnType(jdbcType = JdbcType.VARCHAR) 如: ``` @ColumnType(jdbcType = JdbcType.VARCHAR) private QuType quType; ``` 其中QuType为枚举类型,而mysql库中该字段是varchar。

    Java Java 0 376 0
  • kafka报错修改
    Tonkong 2020-10-14 11:52:12

    spring boot 使用kafka启动后一直警告:Broker may not be available. 修改配置文件: ``` vim config/server.properties # 找到如下并修改 # returned from java.net.InetAddress.getCanonicalHostName(). advertised.listeners=PLAINTEXT://192.168.188.8:9092 ```

    操作系统 计算机系统 0 195 0
  • 分布式CAP
    Tonkong 2020-10-09 21:08:51

    CAP理论,分布式事务。 - consitency - avaliable - partition 一致性,可用性,容错性。 CA,CP。

    计算机网络 计算机网络 0 206 0
  • nginx 文件服务器配置
    Tonkong 2020-09-30 15:50:29

    配置: ``` location /test-images/ { alias /data/test/file/; autoindex on; } ``` 如请求voyky.com/test-images/a/b/c.png 最终访问服务器文件目录为 `/data/test/file/a/b/c.png`。 注意这里不能用root,如用root 最终访问服务器路径则变为 `/data/test-images/test/file/a/b/c.png`,具体原因见官方文档吧。

    Nginx/Apache 操作系统 0 322 0
  • docker容器安装软件没权限
    Tonkong 2020-09-27 00:09:47

    进docker 容器里 安装软件报没权限: 实际场景是docker 方式安装 jenkins。 Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) 解決: ```bash docker exec -u 0 -ti jenkins bash ``` 參考如下: For security concerns, this image uses a non-root user. If you just want to access to a container to install vim, then do it with user 0 (root): docker exec -u 0 -ti jenkins bash. If you want to use this image as a base, then change the user to root in the D

    工具 docker 0 511 0
  • spring boot 之 Profile
    Tonkong 2020-09-26 20:40:21

    Profile是Spring对不同环境提供不同配置功能的支持,可以通过激活、指定参数等方式快速切换环境 1、多profile文件形式: -格式:application-{profile}.properties。 application-dev.properties、application-properties 2、多profile文档块模式 3、激活方式: -命令行:--spring.profiles.active=dev -配置文件:spring.profiles.active=dev -jvm参数:-Dspring.profiles.active=dev 4.idea 里 run -》 edit configura

    Java Spring Boot 0 247 0
  • java 包名规范
    Tonkong 2020-09-26 12:17:39

    java 包名官方建议: https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html In some cases, the internet domain name may not be a valid package name. This can occur if the domain name contains a hyphen or other special character, if the package name begins with a digit or other character that is illegal to use as the beginning of a Java name, or if the package name contains a reserved Java keyword, such as "int". In this event, the suggested convention is to add an underscore

    Java Java 0 624 0
  • logstash 启动报错之配置文件找不到
    Tonkong 2020-09-25 13:27:41

    logstash 启动测试报错: ```bash [root@localhost logstash]# bin/logstash -e 'input{stdin{}}output{stdout{codec=>rubydebug}}' hello world WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console [WARN ] 2020-09-25 12:24:07.716 [L

    ELK Logstash 0 275 0
  • rabbitmq安装与使用
    Tonkong 2020-09-15 21:37:10

    ## rabbitmq ### 安装 ```bash rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc // 在/etc/yum.repo.d/中添加rabbitmq.repo文件 [bintray-rabbitmq-server] name=bintray-rabbitmq-rpm baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/7/ gpgcheck=0 repo_gpgcheck=0 enabled=1 //安装 yum install rabbitmq-server // 可选命令 systemctl enable rabbitmq-server ``` 如果报erlang版本低,先安装高版本erlang

    计算机网络 消息队列 0 475 0

主题切换

颜色:

主题: