<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[qq_30833275的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_30833275</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_30833275]]></copyright><item><title><![CDATA[Gradle7.X项目 转 maven工程]]></title><link>https://blog.csdn.net/qq_30833275/article/details/126750226</link><guid>https://blog.csdn.net/qq_30833275/article/details/126750226</guid><author>qq_30833275</author><pubDate>Wed, 07 Sep 2022 17:33:47 +0800</pubDate><description><![CDATA[Gradle工程转Maven工程]]></description><category></category></item><item><title><![CDATA[iBatis的isNotEmpty非空属性]]></title><link>https://blog.csdn.net/qq_30833275/article/details/86571073</link><guid>https://blog.csdn.net/qq_30833275/article/details/86571073</guid><author>qq_30833275</author><pubDate>Mon, 21 Jan 2019 11:13:28 +0800</pubDate><description><![CDATA[isPropertyAvailable和isNotEmpty
这个两个属性非常有用

isPropertyAvailable：入参有这个属性 isNotEmpty：入参的这个属性不为空

入参一般是一个封装了数据的DTO

如果希望一个属性无论为何值都符合条件则使用isPropertyAvailable
如果希望一个属性只是不为空的时候才符合条件就用isNotEmpty


update例子如下：...]]></description><category></category></item><item><title><![CDATA[MySql多字段排序]]></title><link>https://blog.csdn.net/qq_30833275/article/details/86479022</link><guid>https://blog.csdn.net/qq_30833275/article/details/86479022</guid><author>qq_30833275</author><pubDate>Mon, 14 Jan 2019 16:07:32 +0800</pubDate><description><![CDATA[ORDER BY  后可加2个字段，用英文逗号隔开。
A用升序， B降序，sql该这样写
   ORDER BY  A, B DESC
  或
   ORDER BY  A ASC, B DESC

如果都用降序，必须用两个desc
ORDER BY  A DESC, B DESC


...]]></description><category></category></item><item><title><![CDATA[MyBatis 返回 List集合]]></title><link>https://blog.csdn.net/qq_30833275/article/details/86467939</link><guid>https://blog.csdn.net/qq_30833275/article/details/86467939</guid><author>qq_30833275</author><pubDate>Mon, 14 Jan 2019 09:50:20 +0800</pubDate><description><![CDATA[有时候，我们不需要整个表的所有字段，而是只需要某一个字段的内容，比如：我希望从资产表中查出所有资产的名称，并且不存在重复。
上代码：
&amp;lt;select id=&quot;groupNameList&quot; resultType=&quot;java.lang.String&quot;&amp;gt;
SELECT `asset_name` FROM `asset` group by `asset_name`
&amp;lt;/select&amp;gt...]]></description><category></category></item><item><title><![CDATA[关于mybatis参数传递问题（Parameter 'arg0' not found. ）]]></title><link>https://blog.csdn.net/qq_30833275/article/details/86304719</link><guid>https://blog.csdn.net/qq_30833275/article/details/86304719</guid><author>qq_30833275</author><pubDate>Fri, 11 Jan 2019 16:05:54 +0800</pubDate><description><![CDATA[今天打开项目无意间 在maven中点了一下clean。之后启动项目出现了
Parameter 'arg0' not found.
这样的报错。
原因是mybatis新版又改成了以参数名使用：
where manager_id = #{managerId}

旧版传参形势：
where manager_id = #{arg0}

已经停用。
这是因为在mybatis早期，参数没做注解时默认是按顺序获...]]></description><category></category></item><item><title><![CDATA[[编程题]字符串距离]]></title><link>https://blog.csdn.net/qq_30833275/article/details/85238654</link><guid>https://blog.csdn.net/qq_30833275/article/details/85238654</guid><author>qq_30833275</author><pubDate>Mon, 24 Dec 2018 20:31:27 +0800</pubDate><description><![CDATA[给定一个字符串str，和一个字母ch，请实现相应的代码求出一个数组，使数组中每个数字表示该位置与字母ch之间的最短距离。
比如str=”lexinfintech”  ch=”i”
则输出为：[3,2,1,0,1,1,0,1,2,3,4,5]
输入描述:
第一行为字符串
第二行为字母
输出描述:
一个数字数组
示例1
输入
lexinfintech
i
输出
[3,2,1,0,1,1,0,1,2,3...]]></description><category></category></item><item><title><![CDATA[IDEA警告：SQL dialect is not configured]]></title><link>https://blog.csdn.net/qq_30833275/article/details/85092663</link><guid>https://blog.csdn.net/qq_30833275/article/details/85092663</guid><author>qq_30833275</author><pubDate>Wed, 19 Dec 2018 11:51:13 +0800</pubDate><description><![CDATA[警告信息：
SQL dialect is not configured. MySQL, MariaDB match best. less… (Ctrl+F1)  Inspection info: Detects the best matching SQL dialect for files in  dialect
原因：
Idea能自动给我们检查拼接的sql语句的语法正确性，当然需要进行一定的配置...]]></description><category></category></item><item><title><![CDATA[Autowired注入Service失败！required a bean of type 'com.lncywlc.rio.service.UserService' that could not be]]></title><link>https://blog.csdn.net/qq_30833275/article/details/85050005</link><guid>https://blog.csdn.net/qq_30833275/article/details/85050005</guid><author>qq_30833275</author><pubDate>Mon, 17 Dec 2018 15:19:42 +0800</pubDate><description><![CDATA[错误信息：
Field userService in com.lncywlc.rio.controller.LoginController required a bean of type ‘com.lncywlc.rio.service.UserService’ that could not be found.
The injection point has the following annot...]]></description><category></category></item><item><title><![CDATA[Service和Dao层命名规范]]></title><link>https://blog.csdn.net/qq_30833275/article/details/85047946</link><guid>https://blog.csdn.net/qq_30833275/article/details/85047946</guid><author>qq_30833275</author><pubDate>Mon, 17 Dec 2018 13:16:51 +0800</pubDate><description><![CDATA[Dao 接口命名
insert
batchInsert
selectOne
selectById
count
selectList
update
deleteById
Service 接口命名
add
findById
findByXXX
findXXXList
modify
remove

]]></description><category></category></item><item><title><![CDATA[解决IDEA的Maven项目mybatis-generator插件自动生成代码出现generate failed: Exception getting JDBC Driver问题]]></title><link>https://blog.csdn.net/qq_30833275/article/details/85047202</link><guid>https://blog.csdn.net/qq_30833275/article/details/85047202</guid><author>qq_30833275</author><pubDate>Mon, 17 Dec 2018 11:43:13 +0800</pubDate><description><![CDATA[首先看一下错误信息：
Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project rio: Execution default-cli of goal org.mybatis.generator:mybatis-generato...]]></description><category></category></item><item><title><![CDATA[Springboot项目部署到tomcat中访问接口出现404的问题]]></title><link>https://blog.csdn.net/qq_30833275/article/details/84982924</link><guid>https://blog.csdn.net/qq_30833275/article/details/84982924</guid><author>qq_30833275</author><pubDate>Thu, 13 Dec 2018 10:03:49 +0800</pubDate><description><![CDATA[SpringBoot项目部署到tomcat中访问接口显示404
找了好久，最后发现，application.properties文件中设置的上下文路径是无效的，访问的时候要去掉lncywlc，直接按照路由访问！
// An highlighted block
server.port=80
server.servlet.context-path=/lncywlc


...]]></description><category></category></item><item><title><![CDATA[验证数字的正则表达式集]]></title><link>https://blog.csdn.net/qq_30833275/article/details/83178496</link><guid>https://blog.csdn.net/qq_30833275/article/details/83178496</guid><author>qq_30833275</author><pubDate>Fri, 19 Oct 2018 11:11:53 +0800</pubDate><description><![CDATA[验证数字的正则表达式集
验证数字：1$
验证n位的数字：^\d{n}$
验证至少n位数字：^\d{n,}$
验证m-n位的数字：^\d{m,n}$
验证零和非零开头的数字：^(0|[1-9][0-9])$
验证有两位小数的正实数：2+(.[0-9]{2})?$
验证有1-3位小数的正实数：3+(.[0-9]{1,3})?$
验证非零的正整数：^+?[1-9][0-9]$
验证非零的负整数：^-[1...]]></description><category></category></item></channel></rss>