<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[chaplinlong的博客]]></title><description><![CDATA[每一次转身，只是不想错过。]]></description><link>https://blog.youkuaiyun.com/chaplinlong</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; chaplinlong]]></copyright><item><title><![CDATA[Compose 的一个Button]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/143973017</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/143973017</guid><author>chaplinlong</author><pubDate>Fri, 22 Nov 2024 14:14:49 +0800</pubDate><description><![CDATA[【代码】Compose 的一个Button。]]></description><category></category></item><item><title><![CDATA[Deprecated: use FragmentPagerAdapter(FragmentManager, int) with BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMEN]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/106479293</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/106479293</guid><author>chaplinlong</author><pubDate>Mon, 01 Jun 2020 18:36:06 +0800</pubDate><description><![CDATA[viewpage+多fragment时，
遇到以下deprecated
Deprecated: use FragmentPagerAdapter(FragmentManager, int) with BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT

解决办法：
  vp_main.adapter = object : FragmentPagerAdapter(supportFragmentManager,
            FragmentPagerAdapter.BEHA]]></description><category></category></item><item><title><![CDATA[Attempt to invoke virtual method int android.graphics.Bitmap.getWidth() on a null object]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/106298304</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/106298304</guid><author>chaplinlong</author><pubDate>Sat, 23 May 2020 12:18:28 +0800</pubDate><description><![CDATA[公司之前老项目升级：之前使用：BitmapFactory.decodeFile(path,myOptions);一直很好的，今天突然 ‘int android.graphics.Bitmap.getWidth()’ on a null  一直报null。
奇怪的是，28一下手机正常，29不正常。马上想到是Android Q的特性。
 BitmapFactory.Options myOptions = new BitmapFactory.Options();
        myOptions.inJustD]]></description><category></category></item><item><title><![CDATA[android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/2018012Android 7.0相继崩溃的问题]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/79121810</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/79121810</guid><author>chaplinlong</author><pubDate>Sun, 21 Jan 2018 18:24:53 +0800</pubDate><description><![CDATA[今天项目的bug：

android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/20180121181328.jpg exposed beyond app through ClipData.Item.getUri()

build.gradle中加入：]]></description><category></category></item><item><title><![CDATA[android的Notification折叠]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/53486923</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/53486923</guid><author>chaplinlong</author><pubDate>Tue, 06 Dec 2016 14:54:50 +0800</pubDate><description><![CDATA[android 的Notification 看起来简单，但是api老是改。用的时候确实很麻烦。这里写一个折叠的Demo。 
布局文件：activity_main<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xml]]></description><category></category></item><item><title><![CDATA[android 5.x设置actionBar色调]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/53469791</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/53469791</guid><author>chaplinlong</author><pubDate>Mon, 05 Dec 2016 20:28:28 +0800</pubDate><description><![CDATA[android 5.x提供了色调的方法，其实很简单，直接上代码。 
api至少21./ 创建Palette对象
        Palette.generateAsync(bitmap,
                new Palette.PaletteAsyncListener() {
                    @TargetApi(Build.VERSION_CODES.LOL]]></description><category></category></item><item><title><![CDATA[android studio谁用butterknife（正确地打开方式）]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/53172842</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/53172842</guid><author>chaplinlong</author><pubDate>Tue, 15 Nov 2016 16:36:34 +0800</pubDate><description><![CDATA[最近在用butterknife。网上有很多引用的方法。好多不太准确。这里就说一哈。 
1、在android studio中添加插件：butterknife 
2.在项目的build.gradle中添加： 
 classpath ‘com.neenbedankt.gradle.plugins:android-apt:1.8’ // 添加这行 
3.添加依赖： 
compile ‘com.jakewha]]></description><category></category></item><item><title><![CDATA[if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT)设置后的效果]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/53170721</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/53170721</guid><author>chaplinlong</author><pubDate>Tue, 15 Nov 2016 14:14:21 +0800</pubDate><description><![CDATA[android app开发时，查看之前的会有这样的设置。 //如果sdk版本大于4.4则设置状态栏透明化 会导致首页状态栏减少
       /* if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            Window window = getWindow();
            window.setFlags]]></description><category></category></item><item><title><![CDATA[Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52296056</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52296056</guid><author>chaplinlong</author><pubDate>Wed, 24 Aug 2016 00:50:58 +0800</pubDate><description><![CDATA[今天项目出现这个异常。看完整的。org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'mailSender' defined in class path resource [office.mail.xml]: Could not resolve placeh]]></description><category></category></item><item><title><![CDATA[java.lang.OutOfMemoryError: PermGen space 解决]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52278851</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52278851</guid><author>chaplinlong</author><pubDate>Mon, 22 Aug 2016 17:40:48 +0800</pubDate><description><![CDATA[今天写项目时，突然遇到这个问题。java.lang.OutOfMemoryError: PermGen spacePermGen space，Permanent Generation space,指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出，解决方法也一定是加大内存。我是这样解决的：先清掉项目缓存，再清掉workspace.metadata]]></description><category></category></item><item><title><![CDATA[c3p0异常，exception is java.lang.NoClassDefFoundError: com/mchange/v2/log/jdk14logging/ForwardingLogger]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52251485</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52251485</guid><author>chaplinlong</author><pubDate>Fri, 19 Aug 2016 15:38:52 +0800</pubDate><description><![CDATA[org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested excepti]]></description><category></category></item><item><title><![CDATA[spring中的增强：注解和schema配置几种情况]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52236023</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52236023</guid><author>chaplinlong</author><pubDate>Thu, 18 Aug 2016 00:11:03 +0800</pubDate><description><![CDATA[这里说一下spring的增强。先看schema的五种情况，如下代码：注意： 
环绕增强的参数：ProceedingJoinPoint jp。ProceedingJoinPoint 是JoinPoint的子类。public class MyAop {    public void before(JoinPoint jp){
        System.out.println("before");]]></description><category></category></item><item><title><![CDATA[Class<SpringJUnit4ClassRunner> cannot be resolved to a type spring4.32的junit测试报错解决]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52226253</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52226253</guid><author>chaplinlong</author><pubDate>Wed, 17 Aug 2016 01:27:25 +0800</pubDate><description><![CDATA[直接上bugClass<SpringJUnit4ClassRunner> cannot be resolved to a type看代码@RunWith(SpringJUnit4ClassRunner.class) 
@ContextConfiguration("/bean-aspect.xml")  
public class Test1 {1，记得导入spring的test jar包。 
2.记]]></description><category></category></item><item><title><![CDATA[org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException 解决]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52205531</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52205531</guid><author>chaplinlong</author><pubDate>Sun, 14 Aug 2016 18:09:20 +0800</pubDate><description><![CDATA[Failed to instantiate [org.springframework.aop.aspectj.AspectJExpressionPointcut]: No default constructor found; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/Reflectio]]></description><category></category></item><item><title><![CDATA[spring的几个问题]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52201982</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52201982</guid><author>chaplinlong</author><pubDate>Sat, 13 Aug 2016 22:05:56 +0800</pubDate><description><![CDATA[今天只看几个问题。 
1.BeanFactory与applicationContext 
 
BeanFactory 可以理解为含有bean集合的工厂类。BeanFactory 包含了种bean的定义，以便在接收到客户端请求时将对应的bean实例化。BeanFactory还能在实例化对象的时生成协作类之间的关系。此举将bean自身与bean客户端的配置中解放出来。BeanFactory还包含了bea]]></description><category></category></item><item><title><![CDATA[hibernate的一个分页的写法]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52196358</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52196358</guid><author>chaplinlong</author><pubDate>Fri, 12 Aug 2016 23:28:39 +0800</pubDate><description><![CDATA[直接上代码：// 按条件分页查询投票集合
    public List<Subject> getSubjectList(String title, Integer pageNumber,
            Integer pageSize) {
        if(pageNumber==null){
            pageNumber = 1;
        }]]></description><category></category></item><item><title><![CDATA[.NonUniqueObjectException: a different object with the same identifier等的解决]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52177742</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52177742</guid><author>chaplinlong</author><pubDate>Fri, 12 Aug 2016 00:36:04 +0800</pubDate><description><![CDATA[这几天写hibernate+struts2+easyui+Oracle小项目时遇到的异常。org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [entity.TbBooks#1]看英语，就表示]]></description><category></category></item><item><title><![CDATA[hibernate+Struts2+jquery easyui 做分页处理时的一些问题]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52154293</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52154293</guid><author>chaplinlong</author><pubDate>Mon, 08 Aug 2016 18:10:42 +0800</pubDate><description><![CDATA[合在一起做的时候，问题就多了。 
1.  select
        count(*) as col_0_0_ 
    from
        JBIT.GOODS goods0_看到上面的sql，马上就会想到，获取所有记录时，面对long型的转换，修改Dao中代码。Integer.parseInt(session.createQuery(" select count(*) from Good]]></description><category></category></item><item><title><![CDATA[ajax入门的一些基本用法]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52139037</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52139037</guid><author>chaplinlong</author><pubDate>Sat, 06 Aug 2016 22:31:11 +0800</pubDate><description><![CDATA[本篇文章，说说ajax的写的几种情况。 
最原始的写法。<script type="text/javascript">
        function test(){
        var xmlHttpRequest=null;
        if (window.XMLHttpRequest) {
            xmlHttpRequest=new XMLHttpRequest(]]></description><category></category></item><item><title><![CDATA[商品订购系统时出现的问题汇总 not-null property references a null or transient value 等]]></title><link>https://blog.youkuaiyun.com/chaplinlong/article/details/52133596</link><guid>https://blog.youkuaiyun.com/chaplinlong/article/details/52133596</guid><author>chaplinlong</author><pubDate>Sat, 06 Aug 2016 00:08:37 +0800</pubDate><description><![CDATA[最近用hibernate和struts2写的一个小的项目，出现了很多问题。还算顺利。问题点回顾。 
1.配置struts2，直接忘记在web.xml配置核心控制器。2.1.3之前是FiltDispatcher，之后是filter.StrutsPrepareAndExecuteFilter.忘记配了，直接不报错误。<filter>
            <filter-name>struts2</f]]></description><category></category></item></channel></rss>