java代码中DataSource报错求大神指点 5C

public class JDBCUtils {
//创建BasicDataSource对象
private static BasicDataSource datasource = new BasicDataSource();
//静态代码块,实现必要参数设置
static{
datasource.setDriverClassName("com.mysql.jdbc.Driver");
datasource.setUrl("jdbc:mysql://localhost:3306/gjp");
datasource.setUsername("root");
datasource.setPassword("root");
datasource.setMaxActive(10);
datasource.setMaxIdle(5);
datasource.setMinIdle(2);
datasource.setInitialSize(10);
}
public static DataSource getDataSource(){
return datasource;
}
}
上的 DataSource一直报错是怎么回事求大神,本人是一个刚入门的小白

2个回答

这个应该是静态关键字的问题

嗯,原来我用的系统库环境不支持改成1.6的就好了,谢谢各位大神了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
net 转 java代码 求大神指点
这是.net代码页面!用的插件是easyui!rn rn rn @for (int i = 0; i < Model.Rows.Count; i++)rn rn System.Data.DataTable dt = (System.Data.DataTable)Model;rn rn rnrn rn rn rn rn rnrn如果我转成java代码 应该怎么写?rn本来用foreach循环代替一下,我写在循环里面的div页面都没看到代码?
新手求大神指点杭电oJ Java代码
求Java代码,杭电oJ2059nhttp://acm.hdu.edu.cn/showproblem.php?pid=2059
求大神指点 求大神指点
a表按照b表的规则转换到c表上去rnrnrna表按照b表的规则转换到c表上去rnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[TB_DataPlat] 脚本日期: 08/26/2013 11:23:26 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[TB_DataPlat](rn [DataID] [int] NOT NULL,rn [PFKID] [int] NULL,rn [UseType] [int] NULL,rn [DataSign] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL,rn [Data] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data1] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data2] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data3] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data4] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data5] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data6] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data7] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data8] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data9] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data10] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data11] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data12] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data13] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data14] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data15] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data16] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data17] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data18] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data19] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data20] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data21] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data22] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data23] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data24] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data25] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data26] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data27] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data28] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data29] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data30] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data31] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data32] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data33] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data34] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data35] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data36] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data37] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data38] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data39] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data40] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data41] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data42] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data43] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data44] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data45] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data46] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data47] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data48] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data49] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data50] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data51] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data52] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data53] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data54] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data55] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data56] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data57] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data58] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data59] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data60] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data61] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data62] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data63] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data64] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data65] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data66] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data67] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data68] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data69] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data70] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data71] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data72] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data73] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data74] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data75] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data76] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data77] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data78] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data79] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data80] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data81] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data82] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data83] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data84] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data85] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data86] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data87] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data88] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data89] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data90] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data91] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data92] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data93] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data94] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data95] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data96] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data97] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data98] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data99] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data100] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn CONSTRAINT [PK_TB_DataPlat] PRIMARY KEY CLUSTERED rn(rn [DataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftData] 脚本日期: 08/26/2013 11:24:04 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftData](rn [CraftDataID] [int] IDENTITY(1,1) NOT NULL,rn [DataPlatID] [int] NULL,rn [CraftID] [int] NULL,rn [ProcessID] [int] NULL,rn [GoodsID] [int] NULL,rn [ProductID] [int] NULL,rn [ProductCode] [varchar](60) COLLATE Chinese_PRC_CI_AS NULL,rn [Machine] [int] NULL,rn [StandardValue] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [RelateID] [int] NULL,rn [ParentID] [int] NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULL,rn [CraftType] [int] NULL,rn CONSTRAINT [PK_PP_CraftData] PRIMARY KEY CLUSTERED rn(rn [CraftDataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftDataProperty] 脚本日期: 08/28/2013 09:49:06 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftDataProperty](rn [CraftDataProID] [char](10) COLLATE Chinese_PRC_CI_AS NULL,rn [CraftDataID] [int] NULL,rn [DataPlatID] [int] NULL,rn [DataPFKID] [int] NULL,rn [CraftID] [int] NULL,rn [RowSign] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,rn [ProID] [int] NULL,rn [Data] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Type] [int] NULL,rn [UseType] [int] NULL,rn [ProType] [int] NULL,rn [RateType] [int] NULL,rn [Rate] [decimal](10, 4) NULL,rn [Formula] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [DeletedFlg] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULLrn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnrnrn哪位大神能给个建议 或思路呀 没有多少分了 见谅
求大神指点指点!
我现在用asp.net 写一个采集。 rnrn有300多个城市 每个城市基本都有2400多条数据。rnrn我想采集起来快一点。 请问有什么好的办法吗!rnrn因为中间还要分析页面上的数据。采集图片等等。 所以速度相对比较慢rnrn那位大神能给点这样的思路或者代码。rn
求大神指点指点
我的是Ubuntu18.04系统;rn里面有docker,我想要把容器挂载到宿主机,报错“mount.nfs: access denied by server while mounting 192.168.0.1:/nfsdisk/”rn请大神们指点一下,这个问题怎么解决;
java代码问题,求指点。
java初学者,最近写一个java写的mvc框架下拖动三角形点画三角形的程序,但是现在无法初始运行,不知道问题在哪里,没有报错,debug也不见问题。 因为编程经验不多,不知道该怎么解决,往经验人士zhi dianrnrn----view 1------: rnrnimport java.util.Observer;rnimport java.util.Observable;rnimport javax.swing.JLabel;rnrnpublic class AView extends JLabel implements Observerrn private TriangleModel model;rnrn public AView(TriangleModel model) rn super();rn this.model = model;rn rn double valueA = model.getA();rn double valueB = model.getB();rn double valueC = (int) Math.sqrt(model.getA()*model.getA()+model.getB()*model.getB());rn double valueD=model.getA()*model.getA()+model.getB()*model.getB();rn rn setText("A="+valueA+" A*A="+valueA*valueA+" "+ "B=" +valueB+" B*B="+valueB*valueB+" "+ "C="+ valueC+" "+ "C*C="+ valueDrn +" "+ valueD+"="+valueA*valueA+"+"+valueB*valueBrn +"");rn rn rn public void update(Observable os,Object obj)rn rn double valueA = model.getA();rn double valueB = model.getB();rn double valueC = (int) Math.sqrt(model.getA()*model.getA()+model.getB()*model.getB());rn double valueD=model.getA()*model.getA()+model.getB()*model.getB();rn rn setText("A="+valueA+" A*A="+valueA*valueA+" "+ "B=" +valueB+" B*B="+valueB*valueB+" "+ "C="+ valueC+" "+ "C*C="+ valueDrn +" "+ valueD+"="+valueA*valueA+"+"+valueB*valueBrn +"");rn rnrn rn----view2----- :rnrnimport java.util.Observer;rnimport java.awt.AlphaComposite;rnimport java.awt.BasicStroke;rnimport java.awt.Color;rnimport java.awt.Dimension;rnimport java.awt.Graphics;rnimport java.awt.Graphics2D;rnrnimport java.awt.Polygon;rnimport java.awt.RenderingHints;rnimport java.awt.Shape;rnrnimport java.awt.geom.Line2D;rnrnimport java.util.Observable;rnrnrnimport javax.swing.JPanel;rnrnimport triangle06.TriangleModel;rnrnrnpublic class TriangleView extends JPanel implements Observer rn rnrn rn TriangleModel model;rn rn final int originX = 300;rn final int originY = 300; rn public TriangleView(TriangleModel model) rn super();rn this.model= model;rn rn // setPreferredSize(new Dimension(300,300));rnrnrnrnrnprivate void paintBackground(Graphics2D g2)rn g2.setPaint(Color.LIGHT_GRAY);rn for (int i = 0; i < getSize().width; i += 10) rn Shape line = new Line2D.Float(i, 0, i, getSize().height);rn g2.draw(line);rn rnrn for (int i = 0; i < getSize().height; i += 10) rn Shape line = new Line2D.Float(0, i, getSize().width, i);rn g2.draw(line);rn rnrn rnrnpublic void paintComponent(Graphics g) rn Graphics2D g2 = (Graphics2D) g;rn g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);rn paintBackground(g2);rn// rn float[] dash=(float) 3.0,(float) 3.0;rn g2.setStroke(new BasicStroke((float)2,BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER,(float)1.0,dash,(float)0.0));rn g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.50f));rn if(model == null)rn model = new TriangleModel(new Triangle(100,200),null,null,true);rn rn if (model.startDrag != null && model.endDrag != null) rn int[] x=originX, originX, (int) (originX+model.getB());rn int[] y=originY,(int) (originY+model.getA()),originY;rn Polygon poly = new Polygon(x,y,3);rnrn g2.setColor(Color.red);rn rn g2.fill(poly);rn rn rnrn rn if (model.dragging = true) rn g2.setPaint(Color.LIGHT_GRAY);rn rn int[] x1=originX, originX, (int) (originX+model.getB());rn int[] y1=originY,(int) (originY+model.getA()),originY;rn Polygon poly1=new Polygon(x1,y1,3);;rn g2.draw(poly1);rn rn rnrnrnrn@Overridernpublic void update(Observable o, Object arg) rn repaint();rn rnrnrnrnrnrn------model------ rnrnimport java.awt.Point;rnrnimport java.awt.event.MouseEvent;rnrnimport java.util.Observable;rnrnrnrnpublic class TriangleModel extends Observablern private Triangle temp;rn public Point startDrag, endDrag;rn public boolean dragging = false;rn rn rn rnrn public TriangleModel(Triangle temp, Point startDrag, Point endDrag, boolean dragging) rn super();rn this.temp = temp;rn this.startDrag = startDrag;rn this.endDrag = endDrag;rn this.dragging = dragging;rn rnrn public Point getStartDrag() rn return startDrag;rn rnrn public void setStartDrag(Point startDrag) rn this.startDrag = startDrag;rn rnrn public Point getEndDrag() rn return endDrag;rn rnrn public void setEndDrag(Point endDrag) rn this.endDrag = endDrag;rn rnrnrnpublic double getA()rn return temp.getA(); rn rn rn public void setA(int a)rn temp.setA(a);rn setChanged();rn notifyObservers();rn rn public double getB()rn return temp.getB(); rn rnrn public void setB(int b)rn temp.setB(b);rn setChanged();rn notifyObservers();rn rnrnpublic void mouseClicked(MouseEvent e) rn // TODO Auto-generated method stubrn rnrnrnpublic void mousePressed(MouseEvent e) rn // TODO Auto-generated method stubrn startDrag = new Point(e.getX(), e.getY());rn if(e.getX() == 300||e.getY() == 300)rn dragging=true;rn rn endDrag = startDrag;rn // repaint(); rnrnrnrnpublic void mouseReleased(MouseEvent e) rn // TODO Auto-generated method stubrn startDrag = null; rn endDrag = null;rn dragging= false; rn rnrnrnrnpublic void mouseEntered(MouseEvent e) rn // TODO Auto-generated method stubrn rnrnrnrnpublic void mouseExited(MouseEvent e) rn // TODO Auto-generated method stubrn rnrnrnpublic void mouseDragged(MouseEvent e) rn // TODO Auto-generated method stubrn endDrag = new Point(e.getX(), e.getY());rn rn rn rnrnrnrnpublic void mouseMoved(MouseEvent e) rn // TODO Auto-generated method stubrn rnrnrn rn rnrn----- GUI------ rnrnimport javax.swing.JFrame;rnrnpublic class TriangleGUI rnrn public static void main(String[] args) rn rn JFrame frame = new JFrame("triangle");rn frame.setSize(500, 500);rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rn Triangle temp = new Triangle(100, 200); rn TriangleComponent panel = new TriangleComponent(temp);rn rn frame.add(panel);rn frame.setVisible(true);rn rnrnrnrnrn------component------rnrnimport java.awt.BorderLayout;rnrnrnimport javax.swing.JPanel;rnrnrnpublic class TriangleComponent extends JPanel rn public TriangleComponent(Triangle temp)rn super();rn rn TriangleModel model = new TriangleModel(temp, null, null, true); rn rn AView a = new AView(model);rn rnrn TriangleView triangle = new TriangleView(model);rn rn model.addObserver(a);rn rn model.addObserver(triangle);rnrn rnrn add(BorderLayout.CENTER,triangle);rn rn add(BorderLayout.SOUTH,a);rnrn rn rnrn rnrn rnrnrn------triangle----------:rnrnrnrnpublic class Triangle rn private int c;rn private int b;rn private int a;rn rn rn public Triangle(int a, int b) rn rn this.a=a;rn this.b=b;rn this.c=(int) Math.sqrt(a*a+b*b);rn rn rn rnrn public double getA() rn return a;rn rnrnrn public void setA(int a) rn this.a = a;rn rn rnrn public double getB() rn return b;rn rnrnrn public void setB(int b) rn this.b = b;rn rn rnrn public double getC() rn return c;rn rnrnrn public void setC(double c) rn this.c=(int) Math.sqrt(a*a+b*b);rn rn rn rn rnrnrnrnrn--------change---------:rnrnimport javax.swing.event.ChangeEvent;rnimport javax.swing.event.ChangeListener;rnrnpublic class change implements ChangeListenerrn private TriangleModel model;rn rn public change(TriangleModel model) rn super(); rn this.model = model;rn rn rn rn rnrn public void stateChanged(ChangeEvent c) rn int value1 = (int)Math.abs(model.endDrag.x-300);rn int value2 = (int)Math.abs(model.endDrag.y-300);rn model.setA(value1); rn model.setB(value2); rn rn rn rn rn rn rn rnrn
安装glance报错的问题,求大神指点
当我执行到这一条命令后glance-manage db_sync,就出现了如下错误[img=https://img-bbs.csdn.net/upload/201608/25/1472116690_306209.png][/img],我在网上找了好久都没找到解决办法,还请懂得大神指点下,万分感谢!
SDWebImage在64位架构下报错,求大神指点!
RT,项目中用了SDWebImage和ASI这两个不支持64位架构的类库,真机和模拟器是32位的时候都正常,但是64位的模拟器和5S真机运行的时候就直接报错闪退了,这是错误信息Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView setImageWithURL:placeholderImage:completed:]: unrecognized selector sent to instance 0x10c71a800'rn求大神指点怎么解决,在线等。
运行后一直报错,求大神指点
[img=https://img-bbs.csdn.net/upload/201605/10/1462859149_351537.png][/img][img=https://img-bbs.csdn.net/upload/201605/10/1462858802_133884.png][/img]rnrnrn2016-5-10 13:52:28 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\MyEclipse 6.5\bin;D:\MyEclipse 6.5\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.5.0.zmyeclipse650200806\tomcat\binrn2016-5-10 13:52:28 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2016-5-10 13:52:28 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 456 msrn2016-5-10 13:52:28 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2016-5-10 13:52:28 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2016-5-10 13:52:28 org.apache.tomcat.util.modeler.Registry registerComponentrn严重: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/gdglsys,J2EEApplication=none,J2EEServer=nonern2016-5-10 13:52:28 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory gdglsysrnjava.lang.UnsupportedClassVersionError: Bad version number in .class filern at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.startup.WebAnnotationSet.loadClassAnnotation(WebAnnotationSet.java:145)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationFilterAnnotations(WebAnnotationSet.java:84)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:57)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1064)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4236)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2016-5-10 13:52:28 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2016-5-10 13:52:28 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2016-5-10 13:52:28 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/27 config=nullrn2016-5-10 13:52:28 org.apache.catalina.startup.Catalina startrn信息: Server startup in 817 msrn求大神帮帮忙!!!
.net链接Oracle数据库报错,求大神指点
Visual Studio 2010旗舰版 Oracle11g 链接时报错system.data.oracleclient需要Oracle客户端软件 version8.1.7或更高版本rnORACLE_HOME是在那个文件夹下面,我所有的软件全是装D盘了,怎么都找不到
groovy页面报错,求大神指点
2013-07-09 13:08:32,359,GrailsExceptionResolver,TP-Processor144, errors.GrailsExceptionResolver - Exception occurred when processing request: [GET] /***rnStacktrace follows:rnorg.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: nullrn at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)rn at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)rn at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)rn at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)rn at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)rn at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)rn at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)rn at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)rn at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: java.lang.NullPointerExceptionrn
VHDL语言程序报错,求大神指点
library ieee;rnuse ieee.std_logic.all;rnuse ieee.std_logic_unsigned.all;rnrnentity bisou isrn port(a:in std_logic;rn reset:in std_logic;rn h1:out std_logic);rnend bisou;rnarchitecture bisou1 of bisou isrnbeginrn u1:process(a)rn beginrn if(a'event and a='1') thenrn h1<='1';rn end if;rn end process u1;rn u2:process(reset)rn beginrn if(reset='1') thenrn h1<='0';rn end if;rn end process u2;rnend bisou1; --u1 endrn rn rn rn rn rnlibrary ieee; --u2 startrnuse ieee.std_logic.all;rnuse ieee.std_logic_unsigned.all;rnrnentity bisou2 isrn port(clk:in std_logic;rn h2:in std_logic;rn fre:out std_logic;rn reset2:buffer std_logic);rnend bisou2;rnarchitecture bisou2 of bisou2 isrn SIGNAL cnt1 : std_logic_vector(10 DOWNTO 0); --shu chu gei bellrn SIGNAL cnt2 : std_logic_vector(21 DOWNTO 0); --yan shi 2s hou reset=0rn signal fr_low: std_logic;rn signal fr_high: std_logic;rnbeginrn fre<=fr_low;rn reset2<=fr_high;rn u2:process(h2,clk)rn beginrn if h2='0' then cnt1<="00000000000";rn elsif (clk'event and clk=1) then rn if cnt1="11111111111" then cnt1<="00000000000";rn else cnt1=cnt1+'1';rn end if;rn end if;rn end process u2;rn rn u3:process(h2,clk)rn beginrn if h2='0' then cnt2<="0000000000000000000000";rn elsif (clk'event and clk='1') thenrn if cnt2="1111111111111111111111" then cnt2<="0000000000000000000000";rn else cnt2=cnt2+'1';rn end if;rn end if;rn end process u3;rnrn u4:process(cnt1)rn beginrn if cnt1="11111111111" then fr_low<=not fr_low; rn end if;rn end process u4;rn rn u5:process(cnt2,cnt1)rn beginrn if cnt2="1111111111111111111111" then rn fre_high<='1';rn cnt2<="0000000000000000000000";rn cnt1<="00000000000";rn else fre_high<='0';rn end if;rn end process u5;rnend bisou2; --u2 endrnrnlibrary ieee; --u2+u1 startrnuse ieee.std_logic.all;rnuse ieee.std_logic_unsigned.all;rnrnentity bisou3 isrn port(a:in std_logic;rn b:in std_logic;rn clk:in std_logic;rn fre_low:out std_logic;rn buff:buffer std_logic);rnend bisou3;rnarchitecture bisou3 of bisou3 isrnsignal tem1,temp2:std_logic;rncomponent bisourn port(a1:in std_logic;rn reset:in std_logic;rn h1:out std_logic);rnend component;rnrncomponent bisou2rn port(clk:in std_logic;rn h2:in std_logic;rn fre:out std_logicrn reset2:buffer std_logic);rnend component;rnbeginrn u0:bisou port map(a1,temp2,temp1);rn u1:bisou2 port map(clk,temp1,fre_low,temp2);rnend bisou3;rnrn管脚说明:系统功能为检测第一个实体bisou的输入管教a,a一旦有上升沿,就使输出h1为高电平,其中第一实体bisou的reset为复位管脚,reset为1时,会使h1为低电平 。。。。第二个实体bisou2有一个时钟输入管脚clk,另一个h2(其实在第三个实体里,实现h1和h2连接),当h2为高电平时,开始计数,输出fre管脚是一定频率的,另一个输出reset2为高频率计数,当达到最高计数时,其为1,因为实现reset2与第一个实体的复位信号reset连接,而使得其可以反馈控制h1.。。。rnrn程序报错4个地方,求大神指点?
Javaweb项目build报错 求大神指点
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/hotelmanage]] at java.util.c...
【练习中】求大神指点
[code=csharp]rn List list = new List();rn list.Add(new Student Age = 18, Name = "张三" );rn list.Add(new Student Age = 17, Name = "李四" );rn list.Add(new Student Age = 15, Name = "张三" );rn list.Add(new Student Age = 19, Name = "李四" );rn list.Add(new Student Age = 20, Name = "张三" );rnrn int sum = 0;rn foreach (var item in list)rn rn if (item.Name.Equals("李四"))rn rn sum += item.Age;rn rn rn rn //现在想用list.ForEach(p => p.Name = "李四") rn //这种拉姆达表达筛选出 名字为李四的年龄和rnrn[/code]
求大神帮忙指点指点。
rn 现在碰到如下问题 、 需要查询几个平台下的全部店铺 (一个平台下有若干个店铺) 、使用如下语句 。rnrn[code=sql]rnSELECTrn `paipai_shop`.`sellerUin` AS `shopId`,rn `paipai_shop`.`shopName` AS `shopName`rnFROMrn `paipai_shop`rnUNION ALLrn SELECTrn `dangdang_shop`.`id` AS `shopId`,rn `dangdang_shop`.`shopName` AS `shopName`rn FROMrn `dangdang_shop`rn UNION ALLrn SELECTrn `vjia_shop`.`id` AS `shopId`,rn `vjia_shop`.`shopName` AS `shopName`rn FROMrn `vjia_shop`rn UNION ALLrn SELECTrn `amazon_shop`.`id` AS `shopId`,rn `amazon_shop`.`shopName` AS `shopName`rn FROMrn `amazon_shop`rn UNION ALLrn SELECTrn `taobao_shop`.`shopId` AS `shopId`,rn `taobao_shop`.`nick` AS `shopName`rn FROMrn `taobao_shop`rn UNION ALLrn SELECTrn `jingd_shop`.`shopId` AS `shopId`,rn `jingd_shop`.`shopName` AS `shopName`rn FROMrn `jingd_shop`rn UNION ALLrn SELECTrn `yhd_shop`.`shopId` AS `shopId`,rn `yhd_shop`.`shopName` AS `shopName`rn FROMrn `yhd_shop`[/code]rn 查询出来后 、 因为不同平台下的店铺可能有相同的 shopId 、 导致页面上相同shopid的店铺只显示一个条数据 。 求有无解决方法 。 rn rn rn 我曾经尝试给不同平台下的店铺shopid 后面 拼接 数字 譬如 :[color=#FF0000]`yhd_shop`.`shopId`+0[/color] AS `shopId` 结果 没有用 。哪位大神给个解决方法?
java代码编程报错,求原因。
把第5行代码改为Outer2 a = new Outer2() ;程序报错:Exception in thread "main" java.lang.StackOverflowError;在本类中要实例化该对象,必须使用this替代吗?nnpackage comm.test;nnclass Outer2 n private String title="HELLo world";n Outer2 a = this; //第5行n public void fun() n new Inner2(a).print();n n public String getTitle() n return new Outer2().title;n nnclass Inner2 n private Outer2 outer;n public Inner2(Outer2 out) n this.outer= out;n n public void print() n System.out.println("书名:"+this.outer.getTitle());n nnpublic class Test14 n public static void main(String[] args) n Outer2 out = new Outer2();n out.fun();n nnn
求大神指点哈
这个错误一直循环,怎么回事哦,能运行的项目都运行不起了,空项目都不能运行rn03-15 16:16:52.884 23816-23816/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:52.886 23816-23816/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:52.889 23816-23816/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.894 23816-23816/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.895 23816-23816/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.188 23814-23814/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:53.189 23814-23814/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:53.191 23814-23814/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.195 23814-23814/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.196 23814-23814/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn rn
求大神指点!谢谢
[img=https://img-bbs.csdn.net/upload/201312/10/1386654407_153499.jpg][/img]我想实现如图中间游戏房间那一块界面。但是还差点什么呢?求大神指点,label button上的图片还没加上去rn程序如下:rnimport javax.swing.JButton;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnrnpublic class ScendGui extends JFrame rn private static int num = 1;rn private int jb_size=40;rn private int jl_size=45;rn private int fgap = 20;//行间隔rn private int fgap2 = 20;//列间隔rn private int rgap = 35;//两房间间隔rn private int mgap =2*jb_size+jl_size+rgap; //两桌子间隔rn private int fjb2gap = fgap+jl_size+jb_size;//jb2的首距离rn private int fjlgap = fgap+jl_size; //jl的首距离rn public ScendGui(String s)rn super(s);rn rn this.setLocation(100, 100);rn this.setSize(600, 600);rn for(int i = 1;i<=5;i++)rn for(int j= 0;j<=2;j++)rn rn JButton jb1= new JButton("椅子");rn jb1.setBounds(fgap+j*mgap, fgap2, jb_size, jb_size);rn JButton jb2= new JButton("椅子"); rn jb2.setBounds(fjb2gap+j*mgap, fgap2, jb_size, jb_size);rn JLabel jl= new JLabel("桌子");rn jl.setBounds(fjlgap+j*mgap, fgap2,jl_size, jl_size);rn String str = Integer.toString(num); rn JLabel label = new JLabel("-"+str+"-");rn num = Integer.parseInt(str);rn label.setBounds(mgap/2+j*mgap, 2*jb_size, 20, 20);rn this.add(jb1);rn this.add(jb2);rn this.add(jl);rn this.add(label);rn rn num++;rn fgap2 = (fgap2+2*jb_size)*i+20;rn rn this.setVisible(true);rn rn rn rn public static void main(String[] args) rn new ScendGui("游戏大厅");rnrn rnrnrn
SOS,求大神指点
我想在网站首页上放一个JS,动态捕获国际油价,铜价,请问怎么实现?
求大神指点
下面是迷宫寻找路径的方法,用的堆栈存储结构,要把堆栈的变化显示在下面的图形界面上,该怎么办啊[img=http://img.my.csdn.net/uploads/201303/01/1362135323_7628.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135480_8689.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135492_9720.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135508_5756.jpg][/img]
求大神指点,谢谢!!
#include rnusing namespace std;rnclass Testrnrn int a;rn static int b;rn public:rn Test(int n)rn rn a=n;rn b++;rn rn void Print()rn rn cout<<"a="<
求大神指点????
一个抽奖的需求:rn一等奖1000个,二等奖30万个,三等奖30万个。如何快速的随机抛出一个奖品?我用了数组,把奖品放到数组里面,然后随机抛出一个,这种方式感觉有点慢,需要1到2秒的时间才能得到一个奖品。有没有别的方法,求大神指点?
求大神指点一二
数据库连接rn[code=php]$rs = mysql_query("select id,degree,min,max,prize,v from magic_config");rnwhile($r = mysql_fetch_assoc($rs)) rn $prize_arr[] = $r;rnrnprint_r($prize_arr);[/code]rn看了下 出来的是rnArray ( rn[0] => Array ( [id] => 1 [degree] => 1 [min] => 1 [max] => 5 [prize] => 一等奖 [v] => 1 ) rn[1] => Array ( [id] => 2 [degree] => 122 [min] => 97 [max] => 125 [prize] => 二等奖 [v] => 1 ))rnrn但想要的是 rn$prize_arr = array( rnarray('id'=>1,'degree'=>1,'min'=>1,'max'=>5,'prize'=>'一等奖','v'=>89), rnarray('id'=>2,'degree'=>32,'min'=>7,'max'=>35,'prize'=>'不要灰心','v'=>1)); rn该怎么办?
求android大神指点
这是我实现的仿网易客户端的源码,里面用了fragment,tabhost等,功能已经实现了一大半,rn但是还有个问题一直解决不了,困了我两天了,rn1.就是点击左边隐藏部分不同的位置,然后右边显示到不同的fragment,我一直搞不定rn2.怎么把每一个fragment弄成一个activity,这样自己感觉方便继承自己的BaseActivity,方便管理。rnrn这是下载连接 [url=http://download.csdn.net/detail/agareminder/5219316][/url]rnrn谢谢啦,我这两天特别着急需要,哪个大神搞定了我必有重谢,求发到邮箱,求大神破rn我邮箱visonnum@gmail.comrnqq:894754617 在线等答案
求delphi 的大神指点
用户访问我Web服务器上的ISAPI DLL,可是报告:“Invalid filename"(无效的文件名),然而文件的确存在的。对了,我的数据库在一台Novell 服务器上。这是为什么呢?求指点
新人求大神指点下。。。
请问exec和execute有什么区别吗?rn为什么要加上exec?rn请问有储存过程这方面基础的东西吗?看书看到这里全部都看不懂了rn最后print@sqlStr什么意思呢?
求大神。指点、
select x.* from (Select rownum rowno, z.* from ( rn select a.zhongduanid,rn b.addressname,rn c.display_name as zhongduanxinhao,rn a.zhongduanbianhao,rn a.simkahao,rn a.dengjiriqi,rn a.youxiaoriqi,rn decode(a.zhuangtai, 0, '停用', '正常') as zhuangtai,rn a.zuihouxiugaishijian,rn a.banbenhaorn from t_zhongduan arn left join t_address brn on a.quhuaid = b.addressidrn left join mansys.t_dict_item c on a.zhongduanxinghaodm=CAST(c.fact_value as char(3))rn where 1 = 1 and dict_code='dm_xb'rnrnrn这是我的SQL语句,数据库表里面有个字段 dengjiriqi ,现在我想查的是 dengjiriqi,与服务器上的时间一样的数据。在SQL语句上该怎么改。
求C#大神指点下
打开考生文件夹(D:\Exam\初级会计电算化\XXX)下的“资产负债表-简表.rep”,完成下列操rn作后,将报表以原文件名进行保存rn(1 )设置所有列列宽为3 0rn(2)设置A3、D3单元格文字“宋体、12号、加粗”,垂直居中对齐rnrnrn如题请问大神们,怎么才能读取到这些格式呢
求大神指点一下
$(function()rn //表情rn var tip='表情';rn var table;rn var on=true;rn $('.choice_ul li').eq(0).click(function()rn $('.biaoq').css('display','block');rn table=' ';rn if (on==true)rn for(var i=1; i<=75; i++)rn biaoq = '[/'+tip+i+']';rn table += ' ';rn if( i % 15 == 0 ) table += ' ';rn rn table+='';rn $('.biaoq').append(table);rn rn on=false;rn //下面这一段哪儿出了问题,点击一下添加了[/表情1],点击两下添加了两个[/表情2],继续点击一直都在涨rn $('.biaoq img').click(function()rn var text=$(this).attr('bq');rn rn $('.text_box textarea').append(text);rn rn )rn rn ) rn rn rn )
SQLite 报错 求大神
[img=https://img-bbs.csdn.net/upload/201606/19/1466348080_159492.png][/img]rnrn[img=https://img-bbs.csdn.net/upload/201606/19/1466348086_952969.png][/img]rnrn[img=https://img-bbs.csdn.net/upload/201606/19/1466348093_460887.png][/img]rn[img=https://img-bbs.csdn.net/upload/201606/19/1466348099_738753.png][/img]
跟帖,求大神指点
select sysdate from dual 获取的系统时间,这个是获取的年 月 日 时 分 秒。rnrnrn我只想获得 当前时间 的 年月 日 该怎么写 Sql 语句 求大神指点
新手求大神指点
[code=php]rnrnrn rn 无标题文档rnrnrnrnrnrn";rn rn rn if (!is_numeric($_GET["num1"]))rn $a = false;rn $message .= "第一个数必须为数字 ";rn rn rn if ($_GET["num2"]=="")rn $numb = false;rn $message .= "第二个数不能为空 ";rn rn rn if (!is_numeric($_GET["num2"]))rn $b = false;rn $message .= "第二个数必须为数字 ";rn rn if ($a && $b && $numa && $numb)rn $sum = 0;rn switch ($_GET["ysf"])rn case "+" : $sum = $_GET["num1"] + $_GET["num2"];break;rn case "-" : $sum = $_GET["num1"] - $_GET["num2"];break;rn case "x" : $sum = $_GET["num1"] * $_GET["num2"];break;rn case "/" : $sum = $_GET["num1"] / $_GET["num2"];break;rn case "%" : $sum = $_GET["num1"] % $_GET["num2"];break;rn rnrn rn rn rn?>rn rn 计算器rn rn rn rn " size="9" maxlength="9" />rn rn rn >+rn >-rn >xrn >/rn >%rn rn "/>rn rn rn ";rn if ($a && $b && $numa && $numb)rn echo "结果: $_GET['num1'] $_GET['ysf'] $_GET['num2'] = $sum"; rn else rn echo $message;rn rn echo "";rn rn rn ?>rn rnrnrnrnrn[/code]
求文档大神指点
我公司给了我一个功能模块 让我写方案 我不会写啊 希望有文档高手帮我弄一下:rnhttp://hi.csdn.net/attachment/201104/21/9878450_1303355322p60j.jpg.thumb.jpgrnrnhttp://hi.csdn.net/attachment/201104/21/9878450_13033552367U77.jpg.thumb.jpgrnrn求各位大大帮帮我啊 这关系到我能否在这家公司生存 谢谢了rnrn需要这个模块的详细设计 越详细越好
求大神,指点
单位地址rnrn rn rn 单位详址rn rn 单位1 rn rn这是我的代码,单位地址 是通过地址空间获得的,然后自动赋给单位详址,我现在想的是,如何把已经获取单位地址的单位详址再一次赋给 隐藏域单位1里面。
求各位大神指点
本来最近学习java的GUI的图形界面编程,想弄个选课系统,那我需要什么知识点?要有1) 点击班级能以树型结构显示查看班级姓名(类似QQ好友分栏);2)管理员(一名)、选修课老师以及学生,均有登录功能。
求大神 指点解决方案
我想写一个查询的sqlrn需求:rnrnrn 在一张1000w+的表里通过时间来获取一段数据源(D1),然后通过另外的时间段来获取另一段数据(D2),那两团数据做对比,查询去重(手机号)出D1里面 D2不存在的数据rn(细化 :如果D1里有的手机号 然后D2也有 就不显示,D2里有的数据 D1没有 也不显示,就只显示D1里有 D2里没有的数据)rnrn这个是个通过单据记录手机号的表 手机号存在重复 需要去重rn rnrn求大神指点下思路 这个sql该怎么写?
oracle数据库求大神指点
Oracle中修改表结构时约束会被修改吗?
求大神指点一下~
之前学Java,基础还过得去,现在有研究C#,但对Visual Studio2010用的有点陌生,不是很熟,怎样可以学好C#?需要重新看C#基础开始吗?求大牛指点
求大神,报错org.hibernate.hql.ast.QuerySyntaxException
项目用的是jpa+hibernate+spring做的,然后我写了个单元测试,运行报错rnjava.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: LsmpOssSetting is not mapped [SELECT t FROM LsmpOssSetting t ]rnrn以下是相关代码rn[code=java]package com.newcosoft.lsmp.oss.mode.po;rnrnimport com.newcosoft.lsmp.common.BaseEntity;rnrnimport java.sql.Timestamp;rnrnimport javax.persistence.Column;rnimport javax.persistence.Entity;rnimport javax.persistence.GeneratedValue;rnimport javax.persistence.GenerationType;rnimport javax.persistence.Id;rnimport javax.persistence.JoinColumn;rnimport javax.persistence.ManyToOne;rnimport javax.persistence.SequenceGenerator;rnimport javax.persistence.Table;rnimport javax.persistence.UniqueConstraint;rnrn/**rn * LsmpOssSetting generated by hbm2javarn */rn@Entityrn@Table(name = "LSMP_OSS_SETTING", uniqueConstraints = @UniqueConstraint(columnNames = "ID"))rnpublic class LsmpOssSetting extends BaseEntity implements java.io.Serializable rnrn /**rn * rn */rn private static final long serialVersionUID = 1L;rn private long id;rn private String lastSettingContent;rn private int syncFlag;rn private String lsmpSettingName;rn private String lsmpSettingDescription;rn private LsmpOssSettingApp lsmpSettingApp;rn private String lsmpSettingContent;rn private int status;rn private Timestamp createTime;rn private Timestamp lastChangeTime;rn private Integer ext01;rn private String ext02;rnrn public LsmpOssSetting() rn rnrn public LsmpOssSetting(long id) rn this.id = id;rn rnrn @Idrn @Column(name = "ID", unique = true, nullable = false, precision = 7, scale = 0)rn @SequenceGenerator(name = "LSMP_OSS_SETTING_ID_GENERATOR", sequenceName = "SEQ_OSS_SETTING")rn @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "LSMP_OSS_SETTING_ID_GENERATOR")rn public long getId() rn return this.id;rn rnrn public void setId(long id) rn this.id = id;rn rnrn @Column(name = "LAST_SETTING_CONTENT")rn public String getLastSettingContent() rn return lastSettingContent;rn rnrn public void setLastSettingContent(String lastSettingContent) rn this.lastSettingContent = lastSettingContent;rn rnrn @Column(name = "SYNC_FLAG")rn public int getSyncFlag() rn return syncFlag;rn rnrn public void setSyncFlag(int syncFlag) rn this.syncFlag = syncFlag;rn rnrn @Column(name = "LSMP_SETTING_NAME")rn public String getLsmpSettingName() rn return this.lsmpSettingName;rn rnrn public void setLsmpSettingName(String lsmpSettingName) rn this.lsmpSettingName = lsmpSettingName;rn rnrn @Column(name = "LSMP_SETTING_DESCRIPTION")rn public String getLsmpSettingDescription() rn return this.lsmpSettingDescription;rn rnrn public void setLsmpSettingDescription(String lsmpSettingDescription) rn this.lsmpSettingDescription = lsmpSettingDescription;rn rnrn @ManyToOnern @JoinColumn(name = "LSMP_SETTING_APP_ID", referencedColumnName = "ID")rn public LsmpOssSettingApp getLsmpSettingApp() rn return this.lsmpSettingApp;rn rnrn public void setLsmpSettingApp(LsmpOssSettingApp lsmpSettingApp) rn this.lsmpSettingApp = lsmpSettingApp;rn rnrn @Column(name = "LSMP_SETTING_CONTENT")rn public String getLsmpSettingContent() rn return this.lsmpSettingContent;rn rnrn public void setLsmpSettingContent(String lsmpSettingContent) rn this.lsmpSettingContent = lsmpSettingContent;rn rnrn @Column(name = "STATUS", precision = 2, scale = 0)rn public int getStatus() rn return this.status;rn rnrn public void setStatus(int status) rn this.status = status;rn rnrn @Column(name = "CREATE_TIME")rn public Timestamp getCreateTime() rn return this.createTime;rn rnrn public void setCreateTime(Timestamp createTime) rn this.createTime = createTime;rn rnrn @Column(name = "LAST_CHANGE_TIME")rn public Timestamp getLastChangeTime() rn return this.lastChangeTime;rn rnrn public void setLastChangeTime(Timestamp lastChangeTime) rn this.lastChangeTime = lastChangeTime;rn rnrn @Column(name = "EXT_01", precision = 7, scale = 0)rn public Integer getExt01() rn return this.ext01;rn rnrn public void setExt01(Integer ext01) rn this.ext01 = ext01;rn rnrn @Column(name = "EXT_02", length = 100)rn public String getExt02() rn return this.ext02;rn rnrn public void setExt02(String ext02) rn this.ext02 = ext02;rn rnrn[/code]rnrnapplicationContext.xmlrn[code=html]rnrnrnrn rn rnrn rnrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle10gDialectrn rn rn rnrn rn rn rnrn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rnrn rn [/code]rnrnpersistence.xmlrn[code=html]rnrn rnrn rn[/code]rnrn最后是测试用例rn[code=java]package com.newcosoft.lsmp.oss.dao.env;rnrnimport javax.persistence.EntityManager;rnimport javax.persistence.EntityManagerFactory;rnimport javax.persistence.Query;rnrnimport org.junit.Test;rnimport org.springframework.context.support.FileSystemXmlApplicationContext;rnrnpublic class SettingEnvDaoTest rn @Testrn public void getSetting()rn FileSystemXmlApplicationContext context=new FileSystemXmlApplicationContext("E://pcgworkspace/oss-2.6.0/lsmp-oss-web/src/main/resource/applicationContext.xml");rn EntityManagerFactory emf=context.getBean("entityManagerFactory", EntityManagerFactory.class);rn String hql = "SELECT t FROM LsmpOssSetting t ";rn EntityManager em=emf.createEntityManager();rn Query query=em.createQuery(hql);rn System.out.println(query.getResultList().size());rn rn[/code]
求版主大神指点
本人想实现网站手机验证,现有接口文件及提供商提供的相关文件。因我的是ASP,使用的是post,该如何直接调用短信接口,并如何建立XML等文件。 求版主大神指点。
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池

相似问题

6
高分悬赏,求大神指点,SSM项目 dao层测试出错,不知道问题在哪里
13
求大神指点,SSM项目 dao层测试出错,不知道问题在哪里
3
com.alibaba.druid.pool.DruidDataSource 报错
2
Stringboot druid框架搭建的时候报错 代码及报错如下,请大佬解答感激不尽
2
c3p0报错,版本为最新,求大神帮忙!!!!!!!!
3
springboot报错Connection is not available, request timed out after 30001ms.
4
使用dbcp连接数据库报错java.lang.NumberFormatException: For input string: "20 "?
2
为什么SQL语句在MySQL中可以输出,在mybatis中不行报错Exception: Cannot find class: ${driver}
1
SpringBoot中用@Value读取yml中的值报错
4
javaweb项目,cannot open connection,求大神路过顺手解决,没金币了,最后家当
4
springmvc写的注册登陆系统,注册可以,登陆的时候报NO DataSource specified
2
springboot 项目报错,可能是数据库连接的问题
0
项目本地weblogic11g 部署启动没问题 发布到环境上 weblogic12c 报错 求大佬们给看看
0
log4j:ERROR Could not instantiate class 报错
0
本地项目发布到weblogic12c没问题 环境上报错不能注入datasource 报错如下
2
springboot找不到OracleDriver,求大神解决(Cannot load driver class: oracle.jdbc.driver.OracleDriver)
1
spring boot项目日志功能报错?
5
springboot 在eclipse中正常启动,打包成jar包启动报错。
3
测试时候调用dao层方法报错
1
tomcat启动报错,有jar包