• 夏日绝句

    短发眼镜衬衣白背包短裤配凉孩闲看榕树垂新根巧遇浮云日边来![气生根日边来](//static.acgist.com/resources/images/article/202205/f0b83c19-3b9c-49b5-9945-b45911f2bae3.jpg)

  • OpenJDK17一些JVM参数变化

    由于租用的服务器内存比较小,所以配置了一下网站的JVM参数看下有没有什么优化空间。但是配置后发现启动不了,首先提示下面错误:```UnrecognizedVMoption'PrintGCDateStamps'Error:CouldnotcreatetheJavaVirtualMachine.Error:Afatalexceptionhasoccurred.Programwillexit.```这个是由于`PrintGCDateStamps`配置已经废弃了,所以改为`-Xlog:gc::utctime`。然后还有配置日志的参数也改了:```-Xloggcisdeprecated.Willuse-Xlog:gc:./logs/gc.loginstead.Unrecognizedoption:-JARError:CouldnotcreatetheJavaVirtualMachine.Error:Afatalexceptionhasoccurred.Programwillexit.```这个就比较人性化了,直接提示该使用那个参数替换。还有很多参数都被废弃了:```[0.002s][warning][gc]-XX:+P...

  • 20220516

    ##05月16号星期一天气阴最近广州每天都在下雨,都已经五月中旬了,天气还是非常凉爽的,甚至有一点点微冷。公司现在`996`,确实有点累,以前从来没有加过班。我时常在想,除了上有老,其他的我什么都没有,这么拼干什么。其实每个月有个万把块钱的工资,就已经可以让我过的舒舒服服了,何必呢?回到老家开个小面管,每天蓝天白云、绿水青山、清风明月,悠闲的过着日子不是更加舒适。但是仔细想想,每天上班的生活已经把我调教成了过不了清闲日子的人了,也许真的闲下来只会让我更加心慌吧。不管怎么样到了四十岁,快的话三十五岁我就想过点慢节奏的生活了。生活太快,都来不及体验,挺累的。

  • 西江月·黄埔雨后归家遇月

    西江月·黄埔雨后归家遇月​骤雨不知春尽折尽十里桃花绿草深巷树影斜散落细细月华人生闲愁几许一片浮云天涯夏虫新语透窗纱平添丝丝白发​可惜没拍到黄埔那边的月色,那个光晕,真就是月色被打捞起,晕开了结局。

  • MyBatisPlus连表使用Wrapper

    ```SELECTa.*,b.xFROMa,b${ew.customSqlSegment}page(Pagepage,Wrapperew)```**注意:条件名称必须`ew`**

  • web.xml常用配置

    ```www.acgist.comindex.jspindex.htmlencodingFilterorg.springframework.web.filter.CharacterEncodingFilterencodingUTF-8encodingFilter/*adminFiltercom.acgist.web.filter.AdminFilteradminFilter/admin/*pageCachingFilternet.sf.ehcache.constructs.web.filter.SimplePageCachingFiltersuppressStackTracesfalsecacheNamepageCachepageCachingFilter/imagepageCachingFilter/articlepageCachingFilter/common/*pageCachingFilter/index.jspcontextConfigLocationclasspath*:/applicationContext.xmlmvcorg.springframework.web.servlet.Dispat...

  • Tomcat常用配置

    ##server.xml``````##配置日志```#LicensedtotheApacheSoftwareFoundation(ASF)underoneormore#contributorlicenseagreements.SeetheNOTICEfiledistributedwith#thisworkforadditionalinformationregardingcopyrightownership.#TheASFlicensesthisfiletoYouundertheApacheLicense,Version2.0#(the"License");youmaynotusethisfileexceptincompliancewith#theLicense.YoumayobtainacopyoftheLicenseat##http://www.apache.org/licenses/LICENSE-2.0##Unlessrequiredbyapplicablelaworagreedtoinwriting,software#distributedundertheLicenseisdistributedon...

  • systemd常用配置

    配置`linux`服务`vi/etc/systemd/system/service.service`内容:```[Unit]Description=描述信息After=network.targetnetwork-online.targetWants=network.targetnetwork-online.target[Service]User=root#forking:本身就是后台进程Type=simple|forking|notifyKillMode=processExecStart=启动命令ExecReload=/bin/kill-HUP$MAINPIDExecStop=/bin/kill-QUIT$MAINPID#always:如果不是关闭自动重启Restart=no|always|on-failureRestartSec=5s[Install]WantedBy=multi-user.target```然后加载服务:```systemctldaemon-reload```配置里面所有命令需要使用完整路径,否者可能提示下面错误:```May0915:44:02acgistsystemd[1]:servi...

  • Ehcache常用配置

    ``````

  • nginx常用配置

    ```usernginx;worker_processes1;pid/var/run/nginx.pid;error_log/var/log/nginx/error.logwarn;events{useepoll;worker_connections65536;}http{include/etc/nginx/mime.types;include/etc/nginx/conf.d/*.conf;default_typeapplication/octet-stream;gzipon;gzip_typestext/xmlimage/x-icontext/javascripttext/csstext/plainimage/gifimage/jpegimage/pngimage/jpgapplication/jsonapplication/x-javascriptimage/svg+xmlapplication/vnd.ms-fontobjectapplication/x-font-ttffont/opentypefont/x-woff;gzip_min_length1k;log_formatmain'$remote_...

  • MySQL常用配置

    ```[client]port=3306socket=/tmp/mysql.sockdefault-character-set=utf8mb4[mysql]no-auto-rehashdefault-character-set=utf8mb4[mysqld]port=3306user=mysqlsocket=/tmp/mysql.sock#安装目录:可以忽略basedir=/usr/local/mysql-5.7.26#数据目录:初始化后不能修改datadir=/home/mysql/dataserver-id=1bind-address=0.0.0.0log-bin=mysql-binbinlog_format=mixedcollation-server=utf8mb4_general_cicharacter-set-server=utf8mb4lower_case_table_names=1max_connections=512key_buffer_size=16Mtable_open_cache=128sort_buffer_size=2Mread_buffer_size=2Mnet_buffer_le...

  • Maven常用配置

    ```sonatype_releasesacgistpasswordsonatype_snapshotsacgistpasswordrepo0centralaliyunhttps://maven.aliyun.com/repository/centralrepo1centralHumanReadableNameforthisMirror.http://repo1.maven.org/maven2/repo2centralHumanReadableNameforthisMirror.http://repo2.maven.org/maven2/nexus*localhttp://192.168.1.100:9999/nexus/content/groups/public/gpggpgpasswordnexusnexusPublicRepositorieshttp://centraltruetruenexusPublicRepositorieshttp://centraltruetruegpgnexus```

  • logback常用配置

    ```${system.name}${system.path}/${system.name}.log${system.history}${system.path}/%d{yyyy-MM,aux}/${system.name}.%d{yyyy-MM-dd}.log.gz${system.buffer}false${system.charset}${system.pattern}${system.queue}true0${system.charset}${system.pattern}```

  • log4j常用配置

    ```log4j.rootLogger=info,FILE,Console#这个选项用于控制监控logger的日志不会输出到rootlogger,否则无论会产生许多重复的数据,同时也会影响性能log4j.additivity.monitorLogger=false#文件log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppenderlog4j.appender.FILE.File=logs/www.acgist.com.loglog4j.appender.FILE.Append=truelog4j.appender.FILE.layout=org.apache.log4j.PatternLayoutlog4j.appender.FILE.BufferedIO=truelog4j.appender.FILE.BufferSize=8192log4j.appender.FILE.layout.ConversionPattern=[www.acgist.com]%d%-10r%-10p[%t]%40c%x--%m%nlog4j.appender.FILE.e...

  • docker常用配置

    ##配置加速```vi/etc/docker/daemon.json{"registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]}systemctlrestartdocker```

  • docker-compose常用配置

    ```version:"3.1"services:redis:container_name:redisimage:redis:6.2.6restart:alwaysprivileged:truecommand:redis-server/etc/redis/redis.confports:-6379:6379volumes:-/etc/localtime:/etc/localtime:ro-$PWD/redis/data:/data-$PWD/redis/redis.conf:/etc/redis/redis.confenvironment:-TZ=Asia/Shanghainacos:container_name:nacosimage:nacos/nacos-server:v2.0.3restart:alwaysprivileged:trueports:-8848:8848-9848:9848volumes:-/etc/localtime:/etc/localtime:ro-$PWD/nacos/logs/:/home/nacos/logs-$PWD/nacos/init.d/custom.propertie...

  • Linux加载Java图形验证码错误

    错误信息:```Causedby:java.lang.reflect.InvocationTargetException:nullatjava.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)atjava.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)atjava.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)atjava.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)atjava.base/java.lang.reflect.Construct...

  • 解决方向代理错误

    使用`iframe`提示错误:```MixedContent:Thepageat'https://www.acgist.com'wasloadedoverHTTPS,butrequestedaninsecureformaction'http://www.acgist.com'.Thisrequesthasbeenblocked;thecontentmustbeservedoverHTTPS.````Tomcat`配置:```````SpringBoot`配置:```tomcat:remoteip:host-header:X-Forwarded-Hostprotocol-header:X-Forwarded-Protoremote-ip-header:X-Forwarded-Forprotocol-header-https-value:https```

  • feign oauth2

    ```hystrix:command:default:execution:isolation:strategy:SEMAPHORE@Bean@ConditionalOnMissingBeanpublicRequestInterceptorfeignRequestInterceptor(){returnnewRequestInterceptor(){//privatefinalStringBEARER_TOKEN_TYPE="Bearer";privatefinalStringAUTHORIZATION_HEADER="Authorization";@Overridepublicvoidapply(RequestTemplaterequestTemplate){finalRequestAttributesrequestAttributes=RequestContextHolder.currentRequestAttributes();if(requestAttributes!=null){finalHttpServletRequestrequest=((ServletRequestAttributes)requ...

  • Chrome不自动跳转HTTPS

    ```chrome://net-internals/#hsts```删除自动跳转域名

Snail(蜗牛)

基于Java、JavaFX开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。

GITEE GITHUB 更多信息

Java JavaFX GitHub stars Gitee stars
GitHub Workflow Status GitHub release (latest by date) Maven Central GitHub code size in bytes GitHub