<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title> 码途山海.智隐长卷 - Java开发</title>
    <link>http://www.newxin.tech/bbs/forum.php?mod=forumdisplay&amp;fid=40</link>
    <description>Latest 20 threads of Java开发</description>
    <copyright>Copyright(C)  码途山海.智隐长卷</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 04 May 2026 17:55:12 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://www.newxin.tech/bbs/static/image/common/logo_88_31.gif</url>
      <title> 码途山海.智隐长卷</title>
      <link>http://www.newxin.tech/bbs/</link>
    </image>
    <item>
      <title>一次关于SpringBoot项目更换NACOS服务器之后启动失败的原因.</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=270</link>
      <description><![CDATA[一个SpringBoot + NACOS项目本来运行正常，隔了一段时间之后，再来启动项目，居然启动失败，提示找不到数据库连接URL。
更换成公司环境的Nacos却能启动成功，联想到几天同事启动不成功的情况，认为可能是Naocs中的yaml配置格式有问题，把公司环境的Nacos中的配置全部复 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Thu, 31 Aug 2023 07:05:40 +0000</pubDate>
    </item>
    <item>
      <title>SpringBoot/SpringCloud中，pom.xml配置的profiles不生效解决办法</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=268</link>
      <description><![CDATA[一、现象描述
SpringBoot/SpringCloud中，pom.xml配置的profiles在bootstrap.propertiies通过@profiles.nacos-password@等方式引用。

这是一个其他公司的项目，我们拿来进行二次开发，一开始使用dev配置运行一切正常。功能开发完成之后，安装测试环境，使用prod打包， ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Thu, 22 Dec 2022 06:31:20 +0000</pubDate>
    </item>
    <item>
      <title>SpringBoot实现Word导出</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=267</link>
      <description><![CDATA[实现Word导出是根据 .ftl后缀的freemarker模板先生成相应的Word文档的xml文件，然后再根据xml文件转为doc后缀的Word文档。

我的 .ftl模板就是根据要生成的Word转为xml文件，然后再把xml直接放进模板里面。

根据Word里面要生成什么数据，用freeMarker语言在里面写上类 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Thu, 14 Jul 2022 11:08:00 +0000</pubDate>
    </item>
    <item>
      <title>SpringBoot使用OAuth2自定义PasswordEncoder时报找不PasswordEncoder错误</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=266</link>
      <description><![CDATA[项目运行正常，新增一个功能时，需要在PasswordEncoder中需要使用Spring统一管理的Service类，因此在PasswordEncoder中增加@Service注解，然后在网关中调用oauth/token方法时，就报错：通过仔细的在git中对比，才发现是增加了@Service注解，去掉注解，然后将需要使用的S ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Mon, 25 Apr 2022 13:37:05 +0000</pubDate>
    </item>
    <item>
      <title>SpringGateway + OAuth2请求加密的注意事项</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=265</link>
      <description><![CDATA[在使用SpringGateway时，如果前后端请求数据需要加密，/oauth/token采用的content-type为application/x-www-form-urlencoded，普通的ajax请求为application/json，因此前端在封数据时，既使是加密数据，也不能传递json对象到后台，否则content-type就是application/json ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Sun, 06 Mar 2022 14:04:21 +0000</pubDate>
    </item>
    <item>
      <title>Disruptor 极速体验</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=258</link>
      <description><![CDATA[已经不记得最早接触到 Disruptor 是什么时候了，只记得发现它的时候它是以具有闪电般的速度被介绍的。于是在脑子里， Disruptor 和“闪电”一词关联了起来，然而却一直没有时间去探究一下。[/backcolor]      最近正在进行一项对性能有很高要求的产品项目的研究，自然想 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Wed, 30 Jun 2021 09:35:24 +0000</pubDate>
    </item>
    <item>
      <title>jar文件解包与打包</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=253</link>
      <description><![CDATA[]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Sun, 27 Sep 2020 16:41:43 +0000</pubDate>
    </item>
    <item>
      <title>Kafka 安装配置及快速入门</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=250</link>
      <description><![CDATA[一、简介    官网：http://kafka.apache.org/[/backcolor]    Apache Kafka是分布式发布-订阅消息系统。它最初由LinkedIn公司开发，之后成为Apache项目的一部分。Kafka是一种快速、可扩展的、设计内在就是分布式的，分区的和可复制的提交日志服务。    Apache Kafka与传 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Thu, 27 Aug 2020 13:45:34 +0000</pubDate>
    </item>
    <item>
      <title>Druid SQL监控参数解读</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=249</link>
      <description><![CDATA[SQL监控显示系统已执行过的每条SQL语句的执行情况。通过执行数、执行时间、最慢时间、事务中、错误数、最大并发、执行时间分布等统计维度来展现。需要说明的有：执行数：本条sql语句已执行的次数执行时间：本条sql语句累计执行时间(单位：毫秒)最慢：本条sql语句执行最 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Tue, 18 Aug 2020 13:45:11 +0000</pubDate>
    </item>
    <item>
      <title>eclipse gradle项目没有外部依赖</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=247</link>
      <description><![CDATA[网上说主要是maven的repository URL配置不正确，各种修改对我来说均不起作用，后来看到一个命令：
gradlew cleaneclipse，mac电脑上gradle 2.4没有这个命令，换成：
gradle cleaneclipse，再刷新gradle依赖，外部依赖终于出现，上千个编译错误终于没有了。


另外，还有 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Sat, 27 Jun 2020 16:02:08 +0000</pubDate>
    </item>
    <item>
      <title>Eclipse启动时，WorkSpace日志提示签名文件错误</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=237</link>
      <description><![CDATA[一个基于Eclipse的开发环境，自身做了很多扩展，在改变主题样式(安装了Color Theme，安装时提示签名文件不正确。。。），然后重新启动，结果不能启动，提示详细信息查看工作区 .metadata下的.log文件，.log文件是关键的提示信息为：
java.lang.SecurityException: Inval ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Wed, 15 May 2019 15:45:03 +0000</pubDate>
    </item>
    <item>
      <title>Eclipse中项目面板字体的修改</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=215</link>
      <description><![CDATA[下面以Eclipse4.4为例(Eclipse4.3 没研究，只研究过com.github.eclipseuitheme.moonrise插件，修改与Eclipse4.4差不多，估计Eclipse4.4是内置了moonrise插件)
在Eclipse安装目录中找到 plugins目录
其中有一个目录： org.eclipse.ui.themes_xxxxxx目录（这个目录在我的e ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Wed, 18 Apr 2018 08:30:11 +0000</pubDate>
    </item>
    <item>
      <title>Java+Tomcat开发WebSocket</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=210</link>
      <description><![CDATA[一.WebSocket简单介绍随着互联网的发展，传统的HTTP协议已经很难满足Web应用日益复杂的需求了。近年来，随着HTML5的诞生，WebSocket协议被提出，它实现了浏览器与服务器的全双工通信，扩展了浏览器与服务端的通信功能，使服务端也能主动向客户端发送数据。　　我们知道 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Wed, 06 Dec 2017 03:53:04 +0000</pubDate>
    </item>
    <item>
      <title>Spring Quartz定时器 配置文件详解</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=207</link>
      <description><![CDATA[在JavaEE系统中，我们会经常用到定时任务，比如每天凌晨生成前天报表，每一小时生成汇总数据等等。
我们可以使用java.util.Timer结合java.util.TimerTask来完成这项工作，但时调度控制非常不方便，并且我们需要大量的代码。
使用Quartz框架无疑是非常好的选择，并且与Sp ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Thu, 02 Nov 2017 02:46:20 +0000</pubDate>
    </item>
    <item>
      <title>Struts2系列之三：注解式Action</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=206</link>
      <description><![CDATA[struts2是的配置文件是struts.xml，可以将Action的URL映射和结果放在该文件中，也可以通过Convention Plugin支持注解方式来配置URL映射和结果。 

使用时需要把Convention Plugin添加到classpath中；如果是maven工程则添加依赖： 
Xml代码  


[*]  
[*]  org.apache. ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Mon, 16 Oct 2017 01:44:43 +0000</pubDate>
    </item>
    <item>
      <title>Java开发ElasticSearch笔记</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=205</link>
      <description><![CDATA[一、maven配置：
]]></description>
      <category>Java开发</category>
      <author>lzg</author>
<enclosure url="http://www.newxin.tech/bbs/data/attachment/forum/
" length="" type="image/jpeg" />      <pubDate>Sun, 15 Oct 2017 15:39:20 +0000</pubDate>
    </item>
    <item>
      <title>iText创建WORD或PDF文件</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=193</link>
      <description><![CDATA[MAVEN依赖：
]]></description>
      <category>Java开发</category>
      <author>lzg</author>
<enclosure url="http://www.newxin.tech/bbs/data/attachment/forum/
" length="" type="image/jpeg" />      <pubDate>Thu, 03 Aug 2017 02:36:18 +0000</pubDate>
    </item>
    <item>
      <title>Linux下Tomcat配置相关</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=188</link>
      <description><![CDATA[1、设置运行参数/etc/profile




2.设置开机启动
(1) /etc/init.d建立 tomcat7.sh  ln /usr/java/tomcat/bin/startup.sh /etc/init.d/tomcat7.sh
(2)在/usr/java/tomcat/bin/startup.sh文件的开始，加入以下内容：
### BEGIN INIT INFO
# Provides:          tomcat7
# ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Sat, 03 Jun 2017 15:36:58 +0000</pubDate>
    </item>
    <item>
      <title>Linux下安装Java环境配置步骤详述</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=187</link>
      <description><![CDATA[1、下载jdk8　　登录网址：http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html　　选择对应jdk版本下载。（Tips：可在Windows下载完成后，通过FTP或者SSH到发送到Linux上）2、 登录Linux，切换到root用户　　su root 获取root用户权 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Sat, 03 Jun 2017 14:08:51 +0000</pubDate>
    </item>
    <item>
      <title>在eclipse中将android项目生成apk并且给apk签名</title>
      <link>http://www.newxin.tech/bbs/forum.php?mod=viewthread&amp;tid=182</link>
      <description><![CDATA[在eclipse中将android项目生成apk并且给apk签名
生成apk最懒惰的方法是：
只要你运行过android项目，到工作目录的bin文件夹下就能找到与项目同名的apk文件，这种apk默认是已经使用debug用户签名的。

如果想要自己给apk签名：

1.签名的意义
　　为了保证每个应用程序开 ...]]></description>
      <category>Java开发</category>
      <author>lzg</author>
      <pubDate>Tue, 28 Mar 2017 01:11:05 +0000</pubDate>
    </item>
  </channel>
</rss>