kafka启动(需要先启动zk): bin/zookeeper-server-start.sh -daemon config/zookeeper.properties bin/kafka-server-start.sh -daemon config/server.properties kafka停止 ...
分类:
其他好文 时间:
2020-06-08 12:58:18
阅读次数:
252
springBoot项目打jar包后,配置文件(application.properties)封装于jar包中,修改起来不方便,可以使用其他的办法。spring boot给了几个读取配置文件的位置,我们可以通过这个方式去从jar包外部修改配置文件。启动jar包时,springBoot会按照以下顺序去 ...
分类:
编程语言 时间:
2020-06-08 10:40:28
阅读次数:
200
Mybatis详细的执行流程 SqlSessionFactoryBuilder通过构造器build调用build构造方法 build构造方法调用XMLConfigBuilder这个类解析了(inputStream, environment, properties) 解析完后传给Configurati ...
分类:
其他好文 时间:
2020-06-08 00:14:34
阅读次数:
62
#1.找到文件: apache-tomcat-9.0.14-windows-x64/conf/logging.properties #2、添加语句: java.util.logging.ConsoleHandler.encoding = GBK #3、重启tomcat,查看日志数据即可 ...
分类:
其他好文 时间:
2020-06-07 16:25:34
阅读次数:
117
一、启动zookeeperzkServer.sh start 二、kafka操作//进入目录cd /software/kafka_2.11-2.4.1// (启动kafka)kafka-server-start.sh -daemon config/server.properties//创建分区kaf ...
分类:
其他好文 时间:
2020-06-06 11:04:34
阅读次数:
50
原因 混合java 和scala 无法编译 解决 右键项目 > properties > scala Compiler >勾选Use Project Setting > Scala Installation > Fixed Scala Installation(对应版本)(built-in) > B ...
分类:
系统相关 时间:
2020-06-06 09:27:26
阅读次数:
114
1 MapStruct配置 MapStuct的使用非常简单,把对应的jar包引入即可。 <properties> <mapstruct.version>1.3.1.Final</mapstruct.version> </properties> <dependency> <groupId>org.ma ...
分类:
其他好文 时间:
2020-06-06 01:09:12
阅读次数:
420
//对应当前工程路径下config/properties/sysInfo.propertiesResourceBundle bundle = ResourceBundle.getBundle("config.properties.sysInfo"); //指定字段的名称 String value = ...
分类:
编程语言 时间:
2020-06-05 22:58:12
阅读次数:
76
前置条件 Maven:依赖 <!-- 日志 --> <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-api --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j- ...
分类:
其他好文 时间:
2020-06-04 13:39:37
阅读次数:
61
CSS 原生支持变量 不需要 各种预编译器 放 mdn 链接 https://developer.mozilla.org/zh-CN/docs/Web/CSS/Using_CSS_custom_properties 直接点 个人喜欢用 :root :root 伪类上设置自定义属性,然后在整个文档需要 ...
分类:
Web程序 时间:
2020-06-03 23:22:29
阅读次数:
88