Issue 1 : 启动应用时,hibernate总是drop已经存在的表并清空表里的数据,然后重建表,导致之前初始化的数据丢失
solution : 在配置文件中配置属性spring.jpa.properties.hibernate.hbm2ddl.auto: "update"(我用的是*.yml格式的配置文件)
Issue2 : windows系统下配置papertrail
进入官网https://papertrailapp.com/, 输入邮箱并设置密码设置好账号;
下载nxlog-ce-xxxxx.msi, 按照默认选择安装好nxlog;
用网站上放置的 nxlog.conf覆盖C:\Program Files (x86)\nxlog\conf\nxlog.conf;
修改或添加节点<Input watchfile>:
<Input watchfile>
Module im_file
File 'C:\\nxlog\\to\\*.log'
Exec $Message = $raw_event;
Exec if file_name() =~ /.*\\(.*)/ $SourceName = $1;
SavePos TRUE
Recursive TRUE
</Input>
File路径要用\\分割,否则定位不到文件;