sg-uap3.0,上传控件显示mx/servlets/dataFileUpload 404

图片说明
如图,怎么解决?

uap

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
sg_uap中附件的上传与查看
![图片说明](https://img-ask.csdn.net/upload/201712/10/1512907170_980121.png) 其中查看按钮的点击功能 ![图片说明](https://img-ask.csdn.net/upload/201712/10/1512907244_821548.png) 附件的上传
VS2015 怎么新建 Windows 10 通用应用
Windows UAP选项里只有两个测试模板 Windows 8选项里倒是有Universal选项 ![图片说明](https://img-ask.csdn.net/upload/201602/12/1455253248_358686.png) 难道就是这样的? 我现在系统是Windows 10,VS版本是2015企业版 with update 1,也装了Windows Software Development Kit - Windows 10.0.10586.15
UAP6.5修改删除报错,新增没问题,困恼好几天了求解答
Caused by: java.lang.NullPointerException at nc.vo.pubapp.pattern.model.tool.VOTool.getDifferentField(VOTool.java:47) at nc.vo.pubapp.pattern.model.tool.VOTool.combine(VOTool.java:26) at nc.vo.pubapp.pattern.model.transfer.bill.ServerBillCombinClient.combine(ServerBillCombinClient.java:32) at nc.vo.pubapp.pattern.model.transfer.bill.ServerBillCombinClient.combine(ServerBillCombinClient.java:114) at nc.impl.pubapp.pattern.data.bill.tool.BillTransferTool.initUpdateed(BillTransferTool.java:129) at nc.impl.pubapp.pattern.data.bill.tool.BillTransferTool.<init>(BillTransferTool.java:43) at nc.bs.pubapp.pf.action.AbstractPfAction.runComClass(AbstractPfAction.java:41) at nc.bs.pub.pf.pfframe.PFRunClass.runComBusi(PFRunClass.java:138) at nc.bs.pub.pf.pfframe.PFBusiAction.actionOnStep(PFBusiAction.java:355) at nc.bs.pub.pf.pfframe.PFBusiAction.processAction(PFBusiAction.java:973) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184) at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:188) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135) at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59) at com.sun.proxy.$Proxy213.processAction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22) at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44) at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70) at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57) at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36) at com.sun.proxy.$Proxy11.delegate(Unknown Source) at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32) at com.sun.proxy.$Proxy214.processAction(Unknown Source) at nc.bs.pub.pf.pfframe.PlatFormEntryImpl.processAction(PlatFormEntryImpl.java:145) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184) at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55) at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129) at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135) at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59) at com.sun.proxy.$Proxy211.processAction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22) at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44) at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70) at sun.reflect.GeneratedMethodAccessor98.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57) at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36) at com.sun.proxy.$Proxy11.delegate(Unknown Source) at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32) at com.sun.proxy.$Proxy212.processAction(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at nc.bs.framework.rmi.server.RMIHandlerImpl.invokeBeanMethod(RMIHandlerImpl.java:410) at nc.bs.framework.rmi.server.RMIHandlerImpl.doHandle(RMIHandlerImpl.java:177) at nc.bs.framework.rmi.server.RMIHandlerImpl.handle(RMIHandlerImpl.java:99) at nc.bs.framework.comn.serv.CommonServletDispatcher.doPost(CommonServletDispatcher.java:45) at javax.servlet.http.HttpServlet.service(HttpServlet.java:641) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at sun.reflect.GeneratedMethodAccessor525.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:1) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:536) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:169) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:299) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:214) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at nc.bs.framework.server.LoggerServletFilter.doFilter(LoggerServletFilter.java:35) at sun.reflect.GeneratedMethodAccessor526.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:277) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:1) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:536) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:309) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:249) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:214) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:1) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744)
NC中间件,在访问Oracle数据库时,持续一段时间Oracle就down机了。
先上日志 //++++++++++++++++++ 开始 ++++++++++++++++++++++++++ 2013-12-14 16:57:35 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-80"] 2013-12-14 16:57:36 org.apache.catalina.core.StandardService startInternal 信息: Starting service bright 2013-12-14 16:57:36 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/@VERSION@ 2013-12-14 16:57:39 org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment 信息: No global web.xml found 2013-12-14 16:57:44 org.apache.catalina.util.LifecycleBase start 信息: The start() method was called on component [Realm[Simple]] after start() had already been called. The second call will be ignored. 2013-12-14 16:57:46 org.apache.catalina.util.LifecycleBase start 信息: The start() method was called on component [Realm[Simple]] after start() had already been called. The second call will be ignored. 2013-12-14 16:57:47 org.apache.catalina.util.LifecycleBase start 信息: The start() method was called on component [Realm[Simple]] after start() had already been called. The second call will be ignored. 2013-12-14 16:57:48 org.apache.catalina.util.LifecycleBase start 信息: The start() method was called on component [Realm[Simple]] after start() had already been called. The second call will be ignored. ESA Server starting 2013-12-14 16:58:44 com.chenlb.mmseg4j.Dictionary getDefalutPath 信息: look up in mmseg.dic.path=null 2013-12-14 16:58:44 com.chenlb.mmseg4j.Dictionary getDefalutPath 信息: look up in classpath=file:/D:/Eclipses/uap_studio_v63/UAP/modules/uapbdsearch/META-INF/lib/mmseg4j-all-1.8.5-with-dic.jar!/data 2013-12-14 16:58:44 com.chenlb.mmseg4j.Dictionary getDefalutPath 警告: defalut dic path=file:\D:\Eclipses\uap_studio_v63\UAP\modules\uapbdsearch\META-INF\lib\mmseg4j-all-1.8.5-with-dic.jar!\data not exist 2013-12-14 16:58:45 com.chenlb.mmseg4j.Dictionary loadDic 信息: chars loaded time=125ms, line=12638, on file=file:\D:\Eclipses\uap_studio_v63\UAP\modules\uapbdsearch\META-INF\lib\mmseg4j-all-1.8.5-with-dic.jar!\data\chars.dic 2013-12-14 16:58:45 com.chenlb.mmseg4j.Dictionary loadWord 信息: words loaded time=360ms, line=149853, on file=file:\D:\Eclipses\uap_studio_v63\UAP\modules\uapbdsearch\META-INF\lib\mmseg4j-all-1.8.5-with-dic.jar!\data\words.dic 2013-12-14 16:58:45 com.chenlb.mmseg4j.Dictionary loadDic 信息: load all dic use time=562ms 2013-12-14 16:58:45 com.chenlb.mmseg4j.Dictionary loadUnit 信息: unit loaded time=0ms, line=22, on file=file:\D:\Eclipses\uap_studio_v63\UAP\modules\uapbdsearch\META-INF\lib\mmseg4j-all-1.8.5-with-dic.jar!\data\units.dic ESA Server started: 60282 2013-12-14 16:58:51 org.apache.catalina.util.LifecycleBase start 信息: The start() method was called on component [Realm[Simple]] after start() had already been called. The second call will be ignored. 2013-12-14 16:58:53 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-80"] 2013-12-14 16:58:53 org.apache.tomcat.granite.BrightTomcat start 信息: Server startup in 80633 ms server server take jobs JobDaemon: take job success. lfw_error:java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor :java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor lfw_error:java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor :java.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor //++++++++++++++++++ end ++++++++++++++++++++++++++ 从那个方面定位呢? 1内存泄漏 2Session访问不释放 有什么缩小定位问题的思路吗。
很棘手的问题,关于gridview加载图片
* 1. * 我的问题是用画布标记已经选中的图片,选中之后如果不重用view被选中的状态划过去再划过来是存在的,如果重用的话就会内存溢出,下面是我的代码,请哪位大帮忙看一看。 ``` package com.yonyou.uap.um.control.image; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Set; import android.animation.Animator; import android.animation.ValueAnimator; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.os.Build; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewGroup.LayoutParams; import android.view.animation.AccelerateDecelerateInterpolator; import android.widget.AbsListView; import android.widget.BaseAdapter; import android.widget.ImageView; import com.yonyou.uap.um.animation.UMAnimatorUpdateListener; import com.yonyou.uap.um.base.UMAttributeHelper; import com.yonyou.uap.um.control.ImageSelector; import com.yonyou.uap.um.core.UMActivity; import com.yonyou.uap.um.util.BitmapUtil; public class ImageSelectorAdapter extends BaseAdapter { private static final String TAG = ImageSelectorAdapter.class.getName(); public static final float SCALE = 0.92f; private List<ImageItem> mImages = null; private Context mContext = null; private static Bitmap select_icon = null; private static Paint select_paint = null; private ImageSelector mControl = null; static { select_icon = Bitmap.createScaledBitmap( BitmapUtil.getBitmapFromSrc("", "icon_data_select.png"), UMAttributeHelper.getSize(30 + ""), UMAttributeHelper.getSize(30 + ""), true); select_paint = new Paint(); select_paint.setColor(Color.RED); select_paint.setStyle(Paint.Style.STROKE); select_paint.setStrokeWidth(4); } public ImageSelectorAdapter(Context ctx, ImageSelector control, List<ImageItem> images) { if (ctx == null) { throw new Error("ctx is null"); } mControl = control; mImages = images; if (mImages == null) { mImages = new ArrayList<ImageItem>(); } mContext = ctx; } @Override public int getCount() { int count = 0; if (mImages != null) { count = mImages.size(); } return count; } @Override public Object getItem(int position) { return mImages.get(position); } @Override public long getItemId(int position) { return position; } private Set<Integer> selectedItems = new HashSet<Integer>(); private HashMap<Integer, ImageViewItem> mCache = new HashMap<Integer, ImageViewItem>(); @SuppressLint("NewApi") @Override public View getView(int position, View convertView, ViewGroup parent) { ImageViewItem rs = null; if (mCache.containsKey(position)) { rs = mCache.get(position); } else { rs = this.new ImageViewItem(mContext); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) { rs.setId(View.generateViewId()); } else { rs.setId(100000 + position); } rs.setImageBitmap(BitmapUtil.loadIdImage( "friends_sends_pictures_no", mContext)); final ImageItem item = (ImageItem) getItem(position); rs.loadImageFromPath(item.getImagePath()); rs.setOnClickListener(new ImageViewItemClick(position)); AbsListView.LayoutParams lp = new AbsListView.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, mControl.getRowHeight()); rs.setLayoutParams(lp); // rs.setOnLongClickListener(new View.OnLongClickListener() { // // @Override // public boolean onLongClick(View v) { // mControl.showImageView(item.getImagePath()); // return true; // } // }); mCache.put(position, rs); } return rs; } @SuppressLint("NewApi") private View convertTest(int position, View convertView) { ImageViewItem rs = null; if (convertView == null) { rs = this.new ImageViewItem(mContext); if (Build.VERSION.SDK_INT > Build.VERSION_CODES.JELLY_BEAN) { rs.setId(View.generateViewId()); } else { rs.setId(100000 + position); } } else { rs = (ImageViewItem) convertView; } rs.setImageBitmap(BitmapUtil.loadIdImage("friends_sends_pictures_no", mContext)); ImageItem item = (ImageItem) getItem(position); rs.loadImageFromPath(item.getImagePath()); rs.setOnClickListener(new ImageViewItemClick(position)); AbsListView.LayoutParams lp = new AbsListView.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, mControl.getRowHeight()); rs.setLayoutParams(lp); return rs; } private class ImageViewLoader implements Runnable { private String path = ""; private ImageViewItem item = null; private Bitmap bitmap = null; public ImageViewLoader(ImageViewItem rs, String p) { // rs.beginLoad(); item = rs; path = p; } @Override public void run() { long start = System.currentTimeMillis(); BitmapFactory.Options options = new BitmapFactory.Options(); // 设置为true,表示解析Bitmap对象,该对象不占内存 options.inJustDecodeBounds = true; BitmapFactory.decodeFile(path, options); // 设置缩放比例 options.inSampleSize = computeScale(options, 300, 200); // 设置为false,解析Bitmap对象加入到内存中 options.inJustDecodeBounds = false; bitmap = BitmapFactory.decodeFile(path, options); Log.d(ImageSelectorAdapter.TAG, "load image - " + (System.currentTimeMillis() - start)); Activity ctx = (Activity) ImageSelectorAdapter.this.mContext; // if (Thread.interrupted()) { // return; // } ctx.runOnUiThread(new Runnable() { @Override public void run() { item.setImageBitmap(bitmap); item.setTag(bitmap); } }); } } /** * 根据View(主要是ImageView)的宽和高来计算Bitmap缩放比例。默认不缩放 * * @param options * @param width * @param height */ private int computeScale(BitmapFactory.Options options, int viewWidth, int viewHeight) { int inSampleSize = 1; if (viewWidth == 0 || viewWidth == 0) { return inSampleSize; } int bitmapWidth = options.outWidth; int bitmapHeight = options.outHeight; // 假如Bitmap的宽度或高度大于我们设定图片的View的宽高,则计算缩放比例 if (bitmapWidth > viewWidth || bitmapHeight > viewWidth) { int widthScale = Math .round((float) bitmapWidth / (float) viewWidth); int heightScale = Math.round((float) bitmapHeight / (float) viewWidth); // 为了保证图片不缩放变形,我们取宽高比例最小的那个 inSampleSize = widthScale < heightScale ? widthScale : heightScale; } return inSampleSize; } private class ImageViewItemClick implements View.OnClickListener { private int mPosition = 0; public ImageViewItemClick(int position) { mPosition = position; } @Override public void onClick(View v) { ImageViewItem item = (ImageViewItem) v; item._switch(); if (item.isSelected()) { ImageSelectorAdapter.this.selectedItems.add(mPosition); item.setAlpha(100); } else { if (ImageSelectorAdapter.this.selectedItems.contains(mPosition)) { ImageSelectorAdapter.this.selectedItems.remove(mPosition); item.setAlpha(255); } } Log.e("PATH", "路径:" + mImages.get(mPosition).imagePath); } } private class ImageViewItem extends ImageView { public ImageViewItem(Context context) { super(context); this.setScaleType(ScaleType.CENTER_CROP); } private Thread loader = null; private boolean mIsSelectedItem = false; public synchronized void loadImageFromPath(String path) { loader = new Thread(new ImageViewLoader(this, path)); loader.start(); } public boolean isSelectedItem() { return mIsSelectedItem; } public void setSelectedItem(boolean value) { this.mIsSelectedItem = value; } private void _switch() { this.setSelectedItem(!this.isSelectedItem()); this.invalidate(); } @Override public boolean onTouchEvent(MotionEvent event) { switch (event.getAction()) { case MotionEvent.ACTION_DOWN: this.setScaleX(ImageSelectorAdapter.SCALE); this.setScaleY(ImageSelectorAdapter.SCALE); break; case MotionEvent.ACTION_UP: resetScale(); break; case MotionEvent.ACTION_CANCEL: resetScale(); break; default: break; } return super.onTouchEvent(event); } private void resetScale() { this.setScaleX(1f); this.setScaleY(1f); } @Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int width = MeasureSpec.getSize(widthMeasureSpec); setMeasuredDimension(width, width); } // public void _switch(boolean value) { // setImageItemSelected(value); // Log.e(ImageSelectorAdapter.TAG, " switch to(" + this.getId() // + ") - " + value); // this.invalidate(); // } @Override protected void onDraw(Canvas canvas) { super.onDraw(canvas); Log.e(ImageSelectorAdapter.TAG, " onDraw(" + this.getId() + ") - " + this.isSelected()); if (this.isSelectedItem()) { Rect rect = canvas.getClipBounds(); canvas.drawRect(rect, select_paint); canvas.drawBitmap(select_icon, 60, 10, select_paint); } } } } ``` 尝试过很多结局办法了,还有一种情况会发生,就是内存不溢出状态也在,就是有时候有的图片点击事件不起作用,滑动,被点击的图片才会被标记上。
将已有项目转移到sg_uap平台出现问题 求大神指点!
公司现在要将一个项目改用sg_uap平台开发,但出现了很多问题(对平台不了解),现在的问题是spring容器在初始化sessionFactory时Invocation of init method failed; 希望各路大神带我躺赢~!!!
Mac版eclipse启动tomcat 卡在ESA Server
使用mac版eclipse,启动tomcat时,卡在ESA Server starting, 控制台如下: Init datasource error [design] can not get connection,please check the DBSet 三月 20, 2019 7:54:50 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-127.0.0.1-8099"] 三月 20, 2019 7:54:51 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service bright 三月 20, 2019 7:54:51 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: UAP Server 三月 20, 2019 7:54:53 下午 org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment 信息: No global web.xml found ESA Server starting 推测是mac设置问题,请大佬们帮助(*。*)
weblogic 整合quartz 报错
Nov 06, 2019 4:05:24 AM com.sgcc.uap.kernel.helper.ModuleSRModelHelper setServiceInTargetSource 信息: 引入服务,发布该服务的模块是 Dynamic-Module : [hqmisUtils], ServiceRef : {com.suypower.hqmis.util.springEx.JdbcTemplateEx}={platform_service_idname=JdbcTemplateService, dynamic_module_name=hqmisUtils, platform_service_target=com.suypower.hqmis.util.springEx.JdbcTemplateEx, uap_service_ranking=0, dynamic_module_service=spring_service, service.id=274} [2019-11-06 04:05:26,331] Third's :ERROR org.springframework.scheduling.quartz.LocalDataSourceJobStore:3876 - ClusterManager: Error managing cluster: Failure identifying failed instances when checking-in: Unknown system variable 'OPTION' org.quartz.JobPersistenceException: Failure identifying failed instances when checking-in: Unknown system variable 'OPTION' [See nested exception: java.sql.SQLException: Unknown system variable 'OPTION'] at org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3343) at org.quartz.impl.jdbcjobstore.JobStoreSupport.clusterCheckIn(JobStoreSupport.java:3393) at org.quartz.impl.jdbcjobstore.JobStoreSupport.doCheckin(JobStoreSupport.java:3253) at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.manage(JobStoreSupport.java:3870) at org.quartz.impl.jdbcjobstore.JobStoreSupport$ClusterManager.run(JobStoreSupport.java:3907) Caused by: java.sql.SQLException: Unknown system variable 'OPTION' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619) at com.mysql.jdbc.StatementImpl.executeSimpleNonQuery(StatementImpl.java:1606) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2265) at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135) at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectSchedulerStateRecords(StdJDBCDelegate.java:2949) at org.quartz.impl.jdbcjobstore.JobStoreSupport.findFailedInstances(JobStoreSupport.java:3307) ... 4 more
osx eclipse 启动tomcat时报错:严重: Socket accept failed java.net.SocketException: Socket closed
如题,使用mac版eclipse启动 已经关闭ipv6,eclipse连接Oracle可以连通。 控制台信息如下: Init datasource error [design] can not get connection,please check the DBSet 三月 20, 2019 3:53:23 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-127.0.0.1-8099"] 三月 20, 2019 3:53:24 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service bright 三月 20, 2019 3:53:24 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: UAP Server 三月 20, 2019 3:53:25 下午 org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment 信息: No global web.xml found ESA Server starting NTBService6.3 started.~~~~~~ ESA Server started: 51965 三月 20, 2019 3:54:37 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-127.0.0.1-8099"] 三月 20, 2019 3:54:38 下午 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run 严重: Socket accept failed java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) at java.net.ServerSocket.implAccept(ServerSocket.java:530) at java.net.ServerSocket.accept(ServerSocket.java:498) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216) at java.lang.Thread.run(Thread.java:745) 三月 20, 2019 3:54:38 下午 org.apache.tomcat.granite.BrightTomcat start 信息: Server startup in 76169 ms 三月 20, 2019 3:54:38 下午 org.apache.coyote.AbstractProtocol pause 信息: Pausing ProtocolHandler ["http-bio-127.0.0.1-8099"] 三月 20, 2019 3:54:38 下午 org.apache.tomcat.util.net.JIoEndpoint$Acceptor run 严重: Socket accept failed java.net.SocketException: Socket closed at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:398) at java.net.ServerSocket.implAccept(ServerSocket.java:530) at java.net.ServerSocket.accept(ServerSocket.java:498) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:60) at org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:216) at java.lang.Thread.run(Thread.java:745) 三月 20, 2019 3:54:38 下午 org.apache.catalina.core.StandardService stopInternal 信息: Stopping service bright ESA Server stopping ESA Server stopped 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [check-offline-msg-valid] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-6] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-7] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-10] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-9] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-11] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-12] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-13] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-16] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-17] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-18] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Timer-1] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-20] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-21] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-22] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-23] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-24] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-25] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-26] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-27] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-28] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-29] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-30] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-31] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-32] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-33] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-34] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-35] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-36] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-37] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-38] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-39] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-40] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [transport-check-msg-repeat-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [antesearch-1-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [antesearch-2-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [antesearch-3-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [antesearch-4-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [antesearch-5-thread] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-42] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-44] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-45] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-46] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-47] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-48] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-49] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-50] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/] appears to have started a thread named [Thread-51] but has failed to stop it. This is very likely to create a memory leak. 三月 20, 2019 3:54:39 下午 org.apache.coyote.AbstractProtocol stop 信息: Stopping ProtocolHandler ["http-bio-127.0.0.1-8099"] 三月 20, 2019 3:54:39 下午 org.apache.coyote.AbstractProtocol destroy 信息: Destroying ProtocolHandler ["http-bio-127.0.0.1-8099"]
POI3.9导出Excel出现乱码
POI3.9版本,导出Excel,出现中文乱码,输出流设置为response.setCharachtEncoding("utf-8"),创建单元格的时候设置了cell.setCellType(HSSFCell.ENCODING_UTF_16);每一个单元格内容还转换了new String(str.getBytes("UTF-8"), "UTF-8"); tomcat编码格式设置了URIEncoding="UTF-8" jsp页面也设置了编码格式utf-8 开发平台是UAP,UAP对Eclipse进行了包装, 上面的方法都试了,有时候就不乱吗,有时候就乱码,刚开始导出七八次不乱码,超过以后就乱码了。这个问题怎么解决?
uap如何实现堆积柱状图
uap如何实现堆积柱状图,求大神给个模板或者资源 或者告诉我怎么设置。 非常感谢!!
Oracle Sql 语句里的分析函数问题
错误信息: org.springframework.jdbc.BadSqlGrammarException: StatementCallback; bad SQL grammar [select count(*) SELECT t.name,u.userid,u.duties,u.sex,u.email,u.inemail,u.name uname,u.telephone,u.mobile_phone,u.fax,u.vmphone, row_number() OVER (PARTITION BY t.opriority ]; nested exception is java.sql.SQLException: ORA-00923: 未找到要求的 FROM 关键字 后台代码: queryQL.append("SELECT t.name,u.userid,u.duties,u.sex,u.email,u.inemail,u.name uname,u.telephone,u.mobile_phone,u.fax,u.vmphone, "); queryQL.append("row_number() OVER (PARTITION BY t.opriority ORDER BY gu.priority) upriority "); queryQL.append("FROM ( "); queryQL.append("SELECT o.nodeid,o.code,o.name,o.groupid,ROWNUM opriority "); queryQL.append("FROM uap_organ_node o "); queryQL.append("WHERE o.removed='0' "); queryQL.append("START WITH o.nodeid=10000 "); queryQL.append("CONNECT BY o.parentnodeid=PRIOR o.nodeid "); queryQL.append("ORDER SIBLINGS by o.priority "); queryQL.append(") t,uap_group_user gu,uap_user u "); queryQL.append("WHERE t.groupid=gu.groupid AND gu.userid=u.userid "); queryQL.append("AND u.userid<>1 ");
急求UAP技术资料和安装包
# 请问谁有UAP的技术资料和安装包,急急急。。。。****
oracle数据库查询问题
错误详细信息:org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from ( SELECT eu.*, (SELECT bu.duserid FROM wps_bind_user bu WHERE bu.userid=eu.userid AND bu.dappcode='MHXT') duserid, (SELECT LOGINNAME FROM uap_user u where u.userid=eu.userid) LOGINNAME, FROM wps_exch_user eu WHERE eu.valid='1' AND eu.userid not in (SELECT su.userid from wps_sync_user su) ) where rownum <= ?]; nested exception is java.sql.SQLException: ORA-00936: 缺少表达式
有没有用过THEUAP.COM提供的框架的?
刚进一家新公司,由于以前并没有接触过这个框架,所以自学的时候看起来一头雾水,圈子里有没有使用过这个框架的大神?不知道有没有参考文档?官方提供的感觉还是太零散了,也没基础的东西。
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载 点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。 ...
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
JDK12 Collectors.teeing 你真的需要了解一下
前言 在 Java 12 里面有个非常好用但在官方 JEP 没有公布的功能,因为它只是 Collector 中的一个小改动,它的作用是 merge 两个 collector 的结果,这句话显得很抽象,老规矩,我们先来看个图(这真是一个不和谐的图????): 管道改造经常会用这个小东西,通常我们叫它「三通」,它的主要作用就是将 downstream1 和 downstre...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
GitHub标星近1万:只需5秒音源,这个网络就能实时“克隆”你的声音
作者 | Google团队 译者 | 凯隐 编辑 | Jane 出品 | AI科技大本营(ID:rgznai100) 本文中,Google 团队提出了一种文本语音合成(text to speech)神经系统,能通过少量样本学习到多个不同说话者(speaker)的语音特征,并合成他们的讲话音频。此外,对于训练时网络没有接触过的说话者,也能在不重新训练的情况下,仅通过未知...
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
【管理系统课程设计】美少女手把手教你后台管理
【文章后台管理系统】URL设计与建模分析+项目源码+运行界面 栏目管理、文章列表、用户管理、角色管理、权限管理模块(文章最后附有源码) 1. 这是一个什么系统? 1.1 学习后台管理系统的原因 随着时代的变迁,现如今各大云服务平台横空出世,市面上有许多如学生信息系统、图书阅读系统、停车场管理系统等的管理系统,而本人家里就有人在用烟草销售系统,直接在网上完成挑选、购买与提交收货点,方便又快捷。 试想,若没有烟草销售系统,本人家人想要购买烟草,还要独自前往药...
4G EPS 第四代移动通信系统
目录 文章目录目录4G 与 LTE/EPCLTE/EPC 的架构E-UTRANE-UTRAN 协议栈eNodeBEPCMMES-GWP-GWHSSLTE/EPC 协议栈概览 4G 与 LTE/EPC 4G,即第四代移动通信系统,提供了 3G 不能满足的无线网络宽带化,主要提供数据(上网)业务。而 LTE(Long Term Evolution,长期演进技术)是电信领域用于手机及数据终端的高速无线通...
日均350000亿接入量,腾讯TubeMQ性能超过Kafka
整理 | 夕颜出品 | AI科技大本营(ID:rgznai100)【导读】近日,腾讯开源动作不断,相继开源了分布式消息中间件TubeMQ,基于最主流的 OpenJDK8开发的Tencent Kona JDK,分布式HTAP数据库 TBase,企业级容器平台TKEStack,以及高性能图计算框架Plato。短短一周之内,腾讯开源了五大重点项目。其中,TubeMQ是腾讯大数据平台部门应用的核心组件,...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
相关热词 c# 二进制截断字符串 c#实现窗体设计器 c#检测是否为微信 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片
立即提问