解决APP启动时都会出现一会的空白页

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/daojian5173/article/details/78192592

APP启动时,启动页都会出现个空白页,那是由于AS的机制引起的,Es不会出现这种状况,那么有没有什么办法改变一下呢
解决方法:
在启动页的Activity的样式里改变它的样式

true//设置全屏
@mipmap/start_splash//设置背景,防止start_bg被拉伸,用渐变色

展开阅读全文

微信支付 JSAPI 出现空白页

12-06

请求微信支付,JSAPI模式,跳转到收银台出现空白页。统一下单接口,扫码支付都可以了。openid也是对了。权限目录页也设置了。值得怀疑的就是下面这串。单要是我修改任何一个值或属性,立马报签名不正确。又排除了签名问题,再说已经到了收银台了呀。为什么出现空白页面呢。是不是微信公众号还要测试实名呢?还是这些数字需要注意实名地方呢?rnrnappId=47867987989(假数据)rn&nonceStr=OMYstLoefKjNhxaxh3RGXr2HcvipCBvHrn&package=prepay_id=wx201512040919069296401f4d0183529852rn&signType=MD5rn&timeStamp=1449191942rn&key=2bfb455457sdfsdfdsfsfsdf86a9(假数据)rnrn[img=https://img-bbs.csdn.net/upload/201512/06/1449375650_136606.jpg][/img]rnrnJS请求是:rnrnfunction onBridgeReady()rn WeixinJSBridge.invoke(rn 'getBrandWCPayRequest', rn "appId" : data.appId, //公众号名称,由商户传入 rn "timeStamp":data.timeStamp, //时间戳,自1970年以来的秒数 rn "nonceStr" : data.nonceStr, //随机串 rn "package" : "prepay_id="+data.prepayId, rn "signType" : "MD5", //微信签名方式: rn "paySign" : data.paySign //微信签名rn ,rn function(res) rn if(res.err_msg == "get_brand_wcpay_request:ok" ) // 使用 以上方式判断前端返回,微信团队郑重提示:res.err_msg将在用户支付成功后返回 ok,但并不保证它绝对可靠。rn rn );rnrnif (typeof WeixinJSBridge == "undefined")rn if( document.addEventListener )rn document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);rn else if (document.attachEvent)rn document.attachEvent('WeixinJSBridgeReady', onBridgeReady);rn document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);rn rnelsern onBridgeReady();rnrn我曾怀疑的我请求参数不带双引号有问题。还写死这些参数:rnrn "appId":"XXXXX",rn "timeStamp":"1449231539",rn "nonceStr": "4XP5JU7ZAYGWR4G35FVCEF9KH68HLSKK",rn "package": "prepay_id=wx2015120420190479bcc430650390031908",rn "signType" :"MD5",rn "paySign":"5204131D4FE03A0876EBA1A14832F1CE"rn rnrn还是没有解决问题。请求高手回复,谢谢rnrn 论坛

tomcat在启动时出现了一个很难解决的错误!!

01-18

在tomcat启动的时候出现了以下的错误:请哪位大侠帮我解决下,小弟会非常感激的!!! 只因需要在tomcat的配置文件server.xml中加了连接池(需要使用)引起的,但自己也不知道server.xml文件中具体哪里错了,怎么改 才正确?rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Logger'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'rndebug' to '5' did not find a matching property.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/Logger'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/name'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter/value'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms/parameter'.rn2010-1-18 23:28:05 org.apache.tomcat.util.digester.Digester endElementrn警告: No rules found matching 'Server/Service/Engine/Host/Context/ResourcePararnms'.rn2010-1-18 23:28:05 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performancrne in production environments was not found on the java.library.path: C:\ProgramrnFiles\Java\jdk1.6.0_17\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDrnOWS;C:\WINDOWS\system32;C:\Program Files\Java\jdk1.6.0_17\bin;;C:\apache-tomcat-rn6.0.20\bin;E:\jboss-5.1.0.GA\bin;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ProgramrnFiles\Softex\OmniPass;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Prorngram Files\StormII\Codec;C:\Program Files\StormIIrn2010-1-18 23:28:06 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8028rn2010-1-18 23:28:06 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1707 msrn2010-1-18 23:28:06 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2010-1-18 23:28:06 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.20rnrnserver.xml 文件如下 所示:rnrnrnrnrnrnrn rn rn rn rn rn rn rnrn rn rn rn rn rnrn rn rn rn rn rnrn rn rnrnrn rnrn rn rnrn rn rnrn rn [color=#FF0000] rnrnrn rn rnrn rn rn rn rn rn rn factoryrn org.apache.commons.dbcp.BasicDataSourceFactoryrn rn rn maxActivern 100rn rn rn maxIdlern 30rn rn rn maxWaitrn 5000rn rn rn usernamern rootrn rn rn passwordrn wxl0723rn rn rn driverClassNamern org.gjt.mm.mysql.Driverrn rn rn urlrn jdbc:mysql://localhost:3306/mldnrn rn rn rn [/color]rn rn rn rn rnrnrn红色字体本分为自己在server.xml 中所加的内容 ,谢谢大侠们的给小弟一些指示....rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn 论坛

没有更多推荐了,返回首页