EF通用类报错 --求大神指导 [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs4
本版专家分:1061
Bbs8
本版专家分:48290
版主
Blank
黄花 2017年11月 .NET技术大版内专家分月排行榜第二
2017年10月 .NET技术大版内专家分月排行榜第二
Blank
蓝花 2018年8月 .NET技术大版内专家分月排行榜第三
2018年6月 .NET技术大版内专家分月排行榜第三
2018年3月 .NET技术大版内专家分月排行榜第三
2017年12月 .NET技术大版内专家分月排行榜第三
2017年9月 .NET技术大版内专家分月排行榜第三
Bbs1
本版专家分:0
其他相关推荐
MVC EF 修改 封装类 通用泛型方法
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.Entity.Infrastructure; using System.Data.Entity; namespace DAL { public class EF_Help {
EF 通用数据层 增删改查操作,泛型类II
using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text;   namespa
EF通用数据层封装类(支持读写分离,一主多从)
阅读目录 浅谈orm浅谈Entity FrameworkEntity Framework 通用数据层类扩展类,实现读写分离进一步改造,实现多从库读取参考文章源码分享 回到顶部 浅谈orm   记得四年前在学校第一次接触到 Ling to Sql,那时候瞬间发现不用手写sql语句是多么的方便,后面慢慢的接触了许多orm框架,像 EF,Dapper,Hibernate,Service
entity framework 6 自己编写的通用数据类
//dal类: public class BaseDAL { string strConn = ""; public BaseDAL(string connString) { strConn = connString; } #region 通用增删改查 #region
EF通用增删改查分页帮助类
public class BaseDAL where T:class,new()     {         ///         /// 数据上下文对象         ///         P05MODEL.LeaveWordBoradEntities db = new P05MODEL.LeaveWordBoradEntities();         #regi
EF 增删查改封装 | EF通用增删查改封装
支持多条件查询的扩展 ExpressionExtensions.cs类using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; namespace System { /// <summary> /// 谓词表达式构建器 /// </summary&...
EF学习笔记——通用增删改查方案
我刚接触EF未久,还不知道它有什么强大的功能
基于MFC ppi计算器
新手自己写的ppi计算器,开发环境:vs2010 win8.1 ,求指导,求大神指导
大神指导的简历
写一周内到岗,或者 "目前在职期望新工作" 期望薪资待遇一定要写, 我们公司招人的时候 面议的不约的,面议的意思是不确定自己的需要,对自己定位不明确啥的, 别用163邮箱,用foxmail 或者hotmail之类的英文的
ef操作基类示例
我为自己买盗版视频感到后悔,请看我上一篇文章,所以奉劝大家不要去买这个人的所有视频 下面送上ef操作基类public partial class BaseDal where T:class { //DbContext context=new HM13OAContainer(); private DbContext
js报错,求大神指导!!!
这两个错弄了我一上午。。。大神求帮忙!!!![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114064_996249.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114077_913005.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114089_7884.png)n![图片说明](https://img-ask.csdn.net/upload/201612/19/1482114098_336267.png)
针对SQLite的操作数据库的通用
针对SQLite的操作数据库的封装好的通用类,可直接改后缀名就能使用
大神指导大神指导大神指导
1>main.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall CSpeechRecognition1::CSpeechRecognition1(void)" (??0CSpeechRecognition1@@QAE@XZ),该符号在函数 "public: __thiscall main::main(class CWnd *)" (??0main@@QAE@PAVCWnd@@@Z) 中被引用rn1>main.obj : error LNK2001: 无法解析的外部符号 "public: virtual int __thiscall main::OnInitDiaLog(void)" (?OnInitDiaLog@main@@UAEHXZ)rn1>main.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall CSpeechRecognition1::~CSpeechRecognition1(void)" (??1CSpeechRecognition1@@UAE@XZ),该符号在函数 "public: virtual __thiscall main::~main(void)" (??1main@@UAE@XZ) 中被引用rn1>D:\tttttt\RecordSpeech\Debug\RecordSpeech.exe : fatal error LNK1120: 3 个无法解析的外部命令
C# EF Core 简单工厂模式,接口多继承实例(三)
一、说明 1.本实例是基于.Net Core 1.1,EF Core 1.1的代码实例,仅供参考 2.当前版本的EF Core好像还没有提供模型验证,异常跟踪等 二、实体层,自动 生成 三 、接口层 1.基础 接口  /// /// 基础访问接口,使用泛型 /// public interface IBaseAbstract where T : class { #regio
EF增删改查封装基类
这是我写的Entityframework的增删该查封装基类,如果你要使用EF开发项目,只要把需要增删改查的类继承这个基类,就可以轻松做到。敬请参考,不到之处请多多指正。
【全网首发】EntityFrameWork(EF)6.x 仓储扩展帮助类
EntityFrameWork 6.x Respoistory Extensions,EF 6.x 仓储帮助扩展类,于2016-04-08封装完成,集成了常规CRUD,以及批量增删改和执行SQL操作,非常适合大家使用!
asp.net+mvc+ef+ioc多语言通用后台框架
asp.net+mvc+ef+ioc多语言通用后台框架。
EF架构封装类
http://www.woxihuan.com/46528208/1323334777088641.shtml
qq游戏找茬破解
有很多冗余代码 不是专业人士 见谅 另外可能会出现无响应bug 求大神指导修改
安卓线程的使用
android中试用线程的几种方式,很简单。求大神指导一下。
易语言钓鱼源码
大神买走 求大神买走 易语言钓鱼源码
EF封装基础的数据操作后DbContext的问题,需保证上下文唯一。
使用EF操作数据库,我们会进行一个封装,将DbContext(数据库操作上下文类)提取出来,以便复用。 public class BaseDBContext: DbContext { public BaseDBContext() : base("name=xxSysEntities") { } }然后建立基本的仓储,封
EF5 通用数据层 增删改查操作,泛型类
using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure; using System.Linq; using System.Linq.Expressions; using System.Reflection; using System.Text; namespace P04DA
webpack.config.js报错不知道什么原因,求大神指导
-
急 hibernate总是报错大神指导
刚开始学hibernaternrn错误信息rnlog4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).rnlog4j:WARN Please initialize the log4j system properly.rnException in thread "main" java.lang.ExceptionInInitializerErrorrn at cn.hongle.hibernate.Many2Many.add(Many2Many.java:47)rn at cn.hongle.hibernate.Many2Many.main(Many2Many.java:14)rnCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource cn/hongle/domain/Student.hbm.xmlrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:569)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1428)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1414)rn at cn.hongle.hibernate.HibernateUtils.(HibernateUtils.java:17)rn ... 2 morernCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mappingrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:502)rn at org.hibernate.cfg.Configuration.addResource(Configuration.java:566)rn ... 9 morernCaused by: org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 48; Element type "Set" must be declared.rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown Source)rn at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)rn at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)rn at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.dom4j.io.SAXReader.read(SAXReader.java:465)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:499)rn ... 10 morernrnrnrn[color=#FF0000]hibernate.cfg.xml:rn[/color]rnrnrnrnrnrn rn com.microsoft.sqlserver.jdbc.SQLServerDriverrn jdbc:sqlserver://192.168.0.15:1433;DatabaseName=hibernatern sarn 123rn rn org.hibernate.dialect.SQLServerDialectrn rn updatern truern rn rn rnrnrnrn[b]Teacher.hbm.xml:rn[/b]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrnrnrnStudent.hbm.xml:rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnMany2Many.javarnrnpackage cn.hongle.hibernate;rnrnimport java.util.HashSet;rnimport java.util.Set;rnrnimport org.hibernate.Session;rnimport org.hibernate.Transaction;rnrnimport cn.hongle.domain.Student;rnimport cn.hongle.domain.Teacher;rnrnpublic class Many2Many rn public static void main(String[] args) rn add();rn rn rn rn static void add()rn Session s=null;rn Transaction tx=null;rn tryrn Set ts = new HashSet();rnrn Teacher t1 = new Teacher();rn t1.setName("t1 name");rn ts.add(t1);rnrn Teacher t2 = new Teacher();rn t2.setName("t2 name");rn ts.add(t2);rnrn Set ss = new HashSet();rn Student s1 = new Student();rn s1.setName("s1");rn ss.add(s1);rnrn Student s2 = new Student();rn s2.setName("s2");rn ss.add(s2);rnrn t1.setStudents(ss);rn t2.setStudents(ss);rn rn s1.setTeachers(ts);rn s2.setTeachers(ts);rnrn s = HibernateUtils.getSession();rn tx = s.beginTransaction();rn s.save(t1);rn s.save(t2);rn s.save(s1);rn s.save(s2);rn tx.commit();rn rn finallyrn if(s!=null)rn s.close();rn rn rnrnrnrn
编译openJDK报错,求大神指导!!!
最近想学习下《深入理解Java虚拟机 JVM高级特性与最佳实践》 看看jdk源码和JVM,但是在ubuntu系统编译openJDK报错,不知道哪位大神遇到过,或者有解决办法。报错如下,感觉就是第一句error: warnings found and -Werror specified 引起,但是不知道在哪里改这个配置rnrn...................(省略前部分)rnerror: warnings found and -Werror specifiedrn../../../../src/share/classes/java/rmi/MarshalledObject.java:159: warning: [unchecked] unchecked castrn T obj = (T) in.readObject();rn ^rn required: Trn found: Objectrn where T is a type-variable:rn T extends Object declared in class MarshalledObjectrn../../../../src/share/classes/java/rmi/MarshalledObject.java:193: warning: [rawtypes] found raw type: MarshalledObjectrn MarshalledObject other = (MarshalledObject) obj;rn ^rn missing type arguments for generic class MarshalledObjectrn where T is a type-variable:rn T extends Object declared in class MarshalledObjectrn../../../../src/share/classes/java/rmi/server/RemoteObject.java:439: warning: [rawtypes] found raw type: Classrn Class refClass = Class.forName(internalRefClassName);rn rn............rn(中间省略若干行类似代码)rn .............rn missing type arguments for generic class Classrn where T is a type-variable:rn T extends Object declared in class Classrn../../../../src/share/classes/java/util/logging/LogManager.java:1322: warning: [rawtypes] found raw type: Classrn Class clz = ClassLoader.getSystemClassLoader().loadClass(val);rn ^rn missing type arguments for generic class Classrn where T is a type-variable:rn T extends Object declared in class Classrn../../../../src/share/classes/java/beans/PropertyChangeSupport.java:463: warning: [unchecked] unchecked castrn Hashtable children = (Hashtable) fields.get("children", null);rn ^rn required: Hashtablern found: Objectrn../../../../src/share/classes/sun/rmi/server/ActivatableRef.java:333: warning: [deprecation] done(RemoteCall) in RemoteRef has been deprecatedrn public void done(RemoteCall call) throws RemoteException rn ^rn../../../../src/share/classes/sun/rmi/server/ActivatableRef.java:324: warning: [deprecation] invoke(RemoteCall) in RemoteRef has been deprecatedrn public void invoke(RemoteCall call) throws Exceptionrn ^rnNote: Some input files additionally use or override a deprecated API.rn1 errorrn100 warningsrnmake[6]: *** [.compile.classlist] Error 1rnmake[6]: Leaving directory `/opt/openjdk/jdk/make/sun/rmi/rmi'rnmake[5]: *** [all] Error 1rnmake[5]: Leaving directory `/opt/openjdk/jdk/make/sun/rmi'rnmake[4]: *** [all] Error 1rnmake[4]: Leaving directory `/opt/openjdk/jdk/make/sun'rnmake[3]: *** [all] Error 1rnmake[3]: Leaving directory `/opt/openjdk/jdk/make'rnmake[2]: *** [jdk-build] Error 2rnmake[2]: Leaving directory `/opt/openjdk'rnmake[1]: *** [generic_debug_build] Error 2rnmake[1]: Leaving directory `/opt/openjdk'rnmake: *** [build_debug_image] Error 2rn
poi 导出 word 报错大神指导
poi导出到word 报错信息nException in thread "main" java.lang.NoSuchMethodError: org.openxmlformats.schemas.wordprocessingml.x2006.main.CTR.getDrawingList()Ljava/util/List;n at org.apache.poi.xwpf.usermodel.XWPFRun.(XWPFRun.java:99)n at org.apache.poi.xwpf.usermodel.XWPFParagraph.createRun(XWPFParagraph.java:272)n at Test2.main(Test2.java:54)n n 报错代码行代码 XWPFRun r1 = p1.createRun();n 引用的jar包!n [图片说明](https://img-ask.csdn.net/upload/201610/26/1477462405_111126.png)
ios真机测试报错,求大神指导(SwiftyJSON.framework)
报错返回码:nndyld: Library not loaded: @rpath/SwiftyJSON.framework/SwiftyJSONn Referenced from: /private/var/mobile/Containers/Bundle/Application/72F46E5B-AED7-49D7-B7CE-8C74C447B16B/BabyStrategy.app/BabyStrategyn Reason: image not foundn(lldb) nnn怎么解决?
EF实体类的增删改查操作
//新增 //传统写法 Entities es = new Entities(); Sys_student stu = new Sys_student() { Name = "测试" }; es.Sys_student.Add(stu); es.SaveChanges();
C#通用类Helper整理
http://www.cnblogs.com/hdkn235/p/4046993.html ★前言     最近下载了tita_chou在CSDN上传的一个资源,是在工作中整理的C#帮助类,里面包含了很多实用的类,想到我之前收集过自己用到少的可怜的类,心生敬意啊。当粗略的查看了那个资源,发现有一些是重复的,有一些我的里面有的那个没有,于是乎就萌生了重新整理一个属于自己的帮助类,
【EF框架】DbContext的使用
前言 DbContext类是EntityFramework (简称 EF)中的一个类,可以理解为一个数据库对象的实例。在 EF中,无需手动的拼接 SQL 语句对数据库进行增删改查,而是通过 DbContext 来进行相应操作。叙述DbContext类DbContext类是实体框架的重要组成部分。它是您的域或实体类与数据库之间的桥梁。DbContext是负责与数据交互作为对象的主要类。DbConte
EF 汇总函数使用注意事项Max()/Min()等
一、字符串类型最大值 1.字符串类型的最大值,和数据库的字典排序最后一个相同,如果存在返回null //字符串最大值,是字典排序最后一个 string max1 = _context.students.Max(q => q.sname); Console.WriteLine(max1); //字符串最大值,如果不存在返回null string max2 = _context.students
大神指导指导一下
[img=http://img.bbs.csdn.net/upload/201505/27/1432717312_644686.jpg][/img][b][img=http://img.bbs.csdn.net/upload/201505/27/1432717340_762836.jpg][/img][img=http://img.bbs.csdn.net/upload/201505/27/1432717366_514225.jpg][/img][/b]
EF查看错误信息
首首先将鼠标放到ex 上去 然后展开错误信息 选择第一个蓝色方块,展开信息 然后选择EntityValidationErrors ,在展开信息,选择原始视图,展开信息,选择非公共成员,选择_items ,展开信息,选择第一个(如果就是一个就选择第一个,多个的情况没碰到过),展开信息,选择 ValidationErrors,展开信息,选择第一个然后他就会提示具体错误信息了 CSDN  服务器维护
springboot tv-mapper通用mapper访问突然报错,提示找不到实体类解决办法
方式一:将pom里面热部署注释掉或者删掉即可
大神指导 mfc类的调用
已经设计好一个类了,我想新建一个单文档 然后点菜单弹出对话框,接着是在对话框中添加控件,想引入那个已经设计好的类,让它去控制控件。。怎么弄?
EF6 增删改查
private DbContext _dbContext; public DbContext CurrentContext { get { if (_dbContext == null) { _dbCo
大神解答 EF的问题
今天遇到一个需要在LINQ中使用SQL方法的问题..rn以前一直用的SqlFunctions对象,今天却报错了..rn后来有大神说可以用EntityFunctions 还是报错..rn最后用DbFunctions 就好了..rn求大神解答这三个对象到底是什么情况? - - 有什么区别?
EF比较坑嗲的问题,求大神指导
数据库表中的字段类型是int类型,edmx生成的是string类型,我查询数据时,toList()的时候就报错了:rn[color=#FF0000]“SYS_WorkFlowRecord”的“WFR_Id”属性不能设置为“Int32”值。必须将该属性设置为类型为“String”的非 null 值。[/color] rnusing (var entities = new SYSEntities())rn rn var queryRecordList = entities.SYS_WorkFlowRecord.Select(x => x.WFR_Instance == investNo).ToList();rnrn这是源码 rnrn哪位大神帮忙解决下
EF开发时使用db.SaveChanges()报错
错误为:An error occurred while updating the entries. See the inner exception for details. 原因:主键的类型设置为nvarchar,并且没有指定大小
QML - 动态柱状图
只是实现了动态显示柱状图的内容. 一直在努力实现动态显示音频频谱的功能,如果有哪位大神实现了,麻烦留言告知。求指导
S2SH不完整版
没事整个框架,用的是myeclipse10.0,tomcat 7.0,框架包全部是myeclipse自带。xwork-core-2.2包调试出问题,求大神指导
EF—主键冲突解决办法
报错信息:   编辑代码: 解决办法: 在Controller中不要把实体直接传过去,而要根据id先查出来,然后把查出来的实体传递过去就OK了
LINQ方式 把DataTable的数据 生成全新的DataTable
我们知道,从一个存在的DataTable 类型中选取的DataRow 是不能直接附加给另一个DataTable的实例的,可以考虑用一下方式实现。 假设有一个DataTable 的实例 dt (它可以是一个属于DataSet的)            IEnumerable query =                from dtTmp in dt.AsEnumerable() 
EF异常字段捕捉
 EF使用过程中,有时候提示字段异常了,但是不知道是哪个字段,这个时候就需要捕捉是哪个字段验证不通过,方法如下: using (NorthwindEntities ctx = new NorthwindEntities())               {                   try                   {                       //...
【EF】 EF的一些错误和解决办法
使用EF做实例的时候,没有什么错误,可能是照着视频敲的原因吧,最近要使用EF做个小软件,想用EF但是这一个跟一个的错误着实让我们有点应接不暇。不过还好都解决了,小程序完美运行了。 接下来就是总结一下,这次在自己独立使用的过程中的那些错误们。 在配置文件中找不到名为“informationEntities”的连接字符串 一个解决方案:这个问题很好理解,就是在我的配置
大神指导~~
//对象创建rn shopmodel.GoodsBean goods=new shopmodel.GoodsBean();rn ToolBean.DB db=new ToolBean.DB();rn String info="";rn String forward="";rn String ext="";rn String url="upload/";rn String picurl="/uploadimage";rn FileInputStream imagefile=null;rn PreparedStatement pstmt=null;rn Connection conn=null;rn rn //处理上传的图片文件rn SmartUpload su=new SmartUpload(); //创建新的上传对象rn long maxsize=200*1024; //设置每个上传文件的大小为200KB rn tryrn su.initialize(this.getServletConfig(),request,response);//初始化rn rn su.setMaxFileSize(maxsize); //限制上传文件的大小rn su.setDeniedFilesList("exe,bat,jsp,htm,html,,");//设定禁止上传的文件。禁止上传罗列的那些及没有扩展名的文件。rn su.setAllowedFilesList("jpg,JPG,gif,GIF"); //设定允许上传的格式rn su.upload(); //上传文件rn //将上传文件保存到指定目录rn su.save(picurl,SmartUpload.SAVE_VIRTUAL);rn rn //获取上传的文件,因为只上传了一个文件,所以可直接获取 rn com.jspsmart.upload.File myfile=su.getFiles().getFile(0);rn if(!myfile.isMissing()) rn String filename=myfile.getFilePathName(); //获取完整的带路径的文件名rn imagefile=new FileInputStream(filename);rn //获取用户提交的其他数据rn Request req=su.getRequest(); rn String cid=req.getParameter("cid");rn String cname=req.getParameter("cname");rn String number=req.getParameter("cnumber");rn String price=req.getParameter("cprice");rn String cintro=req.getParameter("cintro");rn //转换数量和价格的格式rn int cnumber=Integer.parseInt(number);rn float cprice=Float.parseFloat(price);rn rn //将图片存到upload文件夹中,并重命名rn ext=myfile.getFileExt();rn Calendar cal=Calendar.getInstance();rn String newfilename=String.valueOf(cal.getTimeInMillis());rn //String saveurl=request.getRealPath("/")+url;rn //saveurl+=newfilename+"."+ext;rn rn //设置存到数据库中的路径rn String cimage=url+newfilename+"."+ext;rn rn rn rn// java.io.File iofile = new java.io.File(filename); rn// java.io.FileInputStream fis = new java.io.FileInputStream(iofile); rn //写入到GoodsBean中rn// goods.setCid(cid);rn// goods.setCname(cname);rn// goods.setCnumber(cnumber);rn// goods.setCprice(cprice);rn// goods.setCintro(cintro);rn// goods.setCimage(cimage);rn rn int cmark=0;rn rn String sql="insert into goods(cid,cname,cnumber,cprice,cintro,cimage,cpic) values (?,?,?,?,?,?,?)";rn rn conn=db.createConn();rn conn.setAutoCommit(true);rn pstmt=conn.prepareStatement(sql); rn pstmt.setString(1,cid);rn pstmt.setString(2,cname);rn pstmt.setInt(3,cnumber);rn pstmt.setFloat(4,cprice);rn pstmt.setString(5,cintro);rn pstmt.setString(6,cimage);rn //pstmt.setBinaryStream(parameterIndex, x, length)rn //pstmt.setBinaryStream(6,fis,419);rn pstmt.setBinaryStream(7,imagefile,imagefile.available());rn //cmark=pstmt.execute();rn cmark=pstmt.executeUpdate();rn if(cmark==1)rn //myfile.saveAs(saveurl,SmartUpload.SAVE_PHYSICAL); //su.SAVE_PHYSICALrn info="添加成功!";rn //conn.commit();rn forward="c_manager.jsp";rn elsern info="添加失败!";rn forward="c_add.jsp";rn rn rn elsern info="请选择要上传的文件!";rn forward="c_add.jsp";rn rn rn catch(Exception e)rn e.printStackTrace();rn info="添加异常!";rn forward="c_add.jsp";rn finallyrn try pstmt.close();catch(Exception e)rn try imagefile.close();catch(Exception e)rn try conn.close();catch(Exception e)rn rnrn rn request.setAttribute("info",info);rn RequestDispatcher rd=request.getRequestDispatcher(forward);rn rd.forward(request,response);rn rn rnrnrn为什么我添加的时候出现添加异常????
大神指导。。。。。。。。。。。。。。
刚补了下C基础,不知道该先看数据结构还是经典的C如:《C和指针》,《C陷阱与缺陷》,《C专家编程》??另,这三本书怎么看啊,有没有先后的讲究????数据结构也求推荐书籍啊!!奋斗半年,只为不愧于心!!!
大神指导
B/S架构本身就是多线程,struts2被加载到容器,每当有人访问action,容器都建一个实例,现在我需要让这些请求排队,rn[code=java]rnprivate static Queue<> linkedlist = new LinkedList<>();rnlinkedlist.offer(this);rn[/code]rn这样对吗?rn谢谢rn
前端程序员面试笔试宝典
前端
急~~大神指导
我现在在做一个注册登录,用vc#窗体编程,要求用户注册后信息写入txt,修改密码时需要匹配txt中的部分信息,如果匹配成功,可以修改密码;为什么匹配非汉字行的时候可以,匹配汉字行的时候不可以;而且有时候能匹配成功,有时候匹配不成功~~
新手求大神指导
[code=python]class SubMain():rn i=0rn while (i < 20):rn i = i + 1rn def __init__(self, submain):rn print self.irn self.submain = submainrn #self.url_360 = 'http://webscan.360.cn/sub/index/?url=%s' % self.submainrn self.url_aizhan= 'https://dns.aizhan.com/%s/%d/' % (self.submain,i)[/code]rn这种情况下,请问在def中怎么能调用到i变量
大神指导?编译预处理
为什么要进行编译预处理?n编译预处理是怎么进行的?特别想知道这是怎么样一回事!
大神 指导
rn rnrn[img=http://img.bbs.csdn.net/upload/201603/30/1459302126_60264.png][/img]rn[img=http://img.bbs.csdn.net/upload/201603/30/1459302174_955188.png][/img]rn 求大神知道哪里错了
大神指导,感激不尽。
我按书上给的源程序编译时却出现了错误。怎么了?下面是源代码:rn#include rnrnLRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;rnrnrnint WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,rn PSTR szCmdLine, int iCmdShow)rnrn static TCHAR szAppName[] = TEXT ("HelloWin") ;rn HWND hwnd ;rn MSG msg ;rn WNDCLASS wndclass ;rnrn wndclass.style = CS_HREDRAW | CS_VREDRAW ;rn wndclass.lpfnWndProc = WndProc ;rn wndclass.cbClsExtra = 0 ;rn wndclass.cbWndExtra = 0 ;rn wndclass.hInstance = hInstance ;rn wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;rn wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;rn wndclass.hbrBackground= (HBRUSH) GetStockObject (WHITE_BRUSH) ;rn wndclass.lpszMenuName = NULL ;rn wndclass.lpszClassName= szAppName ;rnrn if (!RegisterClass (&wndclass))rn rn MessageBox ( NULL, TEXT ("This program requires Windows NT!"),rn szAppName, MB_ICONERROR) ;rn return 0 ;rn rnrn hwnd = CreateWindow( szAppName, // window class namern TEXT ("Full Screen Display"), // window captionrn// WS_OVERLAPPEDWINDOW, // window stylern WS_POPUP,rn// CW_USEDEFAULT,// initial x positionrn// CW_USEDEFAULT,// initial y positionrn// CW_USEDEFAULT,// initial x sizern// CW_USEDEFAULT,// initial y sizern 0,rn 0,rn ::GetSystemMetrics(SM_CXSCREEN),rn ::GetSystemMetrics(SM_CYSCREEN),rn NULL, // parent window handlern NULL, // window menu handlern hInstance, // program instance handlern NULL) ; // creation parametersrnrnrn ShowWindow (hwnd, iCmdShow) ;rn UpdateWindow (hwnd) ;rnrnrn while (GetMessage (&msg, NULL, 0, 0))rn rn TranslateMessage (&msg) ;rn DispatchMessage (&msg) ;rn rn return msg.wParam ;rnrnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrn HDC hdc ;rn PAINTSTRUCT ps ;rn RECT rect ;rnrn switch (message)rn rn case WM_CREATE:rn// PlaySound (TEXT ("hellowin.wav"), NULL, SND_FILENAME | SND_ASYNC) ;rn return 0 ;rn case WM_PAINT:rn hdc = BeginPaint (hwnd, &ps) ;rn GetClientRect (hwnd, &rect) ;rn DrawText (hdc, TEXT ("This window can cover the task item!"), -1, &rect,rn DT_SINGLELINE | DT_CENTER | DT_VCENTER) ;rn EndPaint (hwnd, &ps) ;rn return 0 ;rn case WM_DESTROY:rn PostQuitMessage (0) ;rn return 0 ;rn rn return DefWindowProc (hwnd, message, wParam, lParam) ;rnrn错误:rnCompiling...rn01.crne:\programs\a\01.c(33) : warning C4003: not enough actual parameters for macro 'CreateWindowA'rne:\programs\a\01.c(33) : warning C4047: 'function' : 'int ' differs in levels of indirection from 'void *'rne:\programs\a\01.c(33) : warning C4024: 'CreateWindowExA' : different types for formal and actual parameter 8rne:\programs\a\01.c(33) : warning C4133: 'function' : incompatible types - from 'struct HINSTANCE__ *' to 'struct HMENU__ *'rne:\programs\a\01.c(33) : error C2059: syntax error : ')'rne:\programs\a\01.c(43) : error C2143: syntax error : missing '' before '__stdcall'rne:\programs\a\01.c(44) : warning C4142: benign redefinition of typerne:\programs\a\01.c(51) : warning C4129: 'm' : unrecognized character escape sequencerne:\programs\a\01.c(51) : warning C4129: '? : unrecognized character escape sequencern执行 cl.exe 时出错.rnrn01.obj - 1 error(s), 0 warning(s)rn求大神指导
小弟求大神指导~
程序的逻辑中,经常会遇到,类似数据库操作。这些在c++中是怎么操作的呢?rnrn比如,一个对象拥有属性:姓,名,所在城市,身高,年龄,性别。rnrn要求列举中所有满足条件的对象:rn第一种情况rn 1.所在城市Arn 2.所有姓氏为李rn第二种情况,比较繁琐一点的:rn 1.身高为173~178之间的rn 2.性别为男rnrnrn项目中有不少诸如此类的问题。我基本是用了几个std::map或者std:multimap来做的,但是毕竟容易出错,而且操作起来复杂度也很高。rnrn高手达人,应该有什么多键管理器类的。rnrnrn[color=#FF0000]以上都是我打的比方,从项目中提炼出来的。我希望有良好的方法处理第一种情况。如果有代码就更好了。第二种貌似太麻烦了点,就不奢望了。小弟先在这里谢谢各位看帖的朋友了。O(∩_∩)O[/color]
大神指导
这排序出来少一个数,初学者请指导。rnrnrnvar arr=[5,0,-56,900,12];rnrn for (var i=0;iarr[j+1])rn rn var temp=arr[j];rn arr[j]=arr[j+1];rn arr[j+1]=temp;rn rn rnrn rn for (var i=1;i
myeclipse6.5求大神指导
安装了myeclipse6.5版本的,比如在写System.的时候不能带出System这个类中的方法,求解决办法。已重新安装。
大神指导,安卓!!!!
我标记的1,2,3处不理解,求大神可以解释下,谢谢^ω^![图片](https://img-ask.csdn.net/upload/201611/15/1479217669_412896.jpg)
大神指导!谢谢!!
一张Excel表:序号 姓名 时间 备注 第1周描述rn 1 小明 9.15 .. ....rn 2 小红 9.15 aa dddddrn ...rn要把这个界面做到Delphi中去,可以简单修改查询,现在要在数据库里建2张表,第1张表包含前面的几列内容:序号、姓名、时间、备注,还有1张表就是每周描述,因为每周都要更新,请问第2张表怎么建,界面里的“第1周描述”可以变成第2(3、4、5...)周描述,还是也建到第一张表里去,2张的话Delphi的query中SQL语句怎么写???
oracle大神指导
怎么同时执行查询语句和修改语句
求PS大神指导
怎么样使用图片上的人祛斑
求c#大神指导
我想指导为什么创建不了用户 (NGUSER)?????rnrnrnrnrn private void btnSetNg_Click(object sender, EventArgs e)rn rn string strSql = "create user NGUSER identified by '9003' default tablespace std; grant connect,resource to NGUSER ; grant create any sequence to NGUSER ; grant create any table to NGUSER ; grant delete any table to NGUSER ; grant insert any table to NGUSER ; grant select any table to NGUSER ; grant unlimited tablespace to NGUSER ; grant execute any procedure to NGUSER ; grant update any table to NGUSER ; grant create any view to NGUSER ; "; rn rn //"CREATE USER NGUSER PROFILE DEFAULT IDENTIFIED BY 9003 DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;GRANT CREATE ANY TABLE TO NGUSER;GRANT UNLIMITED TABLESPACE TO NGUSER;GRANT CONNECT TO NGUSER;GRANT RESOURCE TO NGUSER;";rn rn tryrn rn Form1.oclConnection.Open();rn rn OracleCommand oclCommand = new OracleCommand(strSql, Form1.oclConnection);rn rnrn MessageBox.Show("创建成功");rnrn /*rn rn rn create user NGUSER identified by 9003; grant create session to NGUSER; grant create table to NGUSER; grant create tablespace to NGUSER; grant create view to NGUSER; rn rn */rnrnrn rn catch (Exception ex)rn rnrn MessageBox.Show("SQL语句出错!\n" + strSql.ToString() + "\n请检查:\n" + ex.ToString());rnrn rn finallyrn rn Form1.oclConnection.Close();rn rn FormEnterDatabase_Load(this,e);rn rn
求occi大神指导
我使用的是vs2012 orcale11g客户端 编译时出现链接错误:rn1>------ 已启动生成: 项目: ConnectDatabase, 配置: Release Win32 ------rnrn1> ConnectDatabase.cpprnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z)rnrn1>ConnectDatabase.obj : error LNK2001: 无法解析的外部符号 "public: static void __cdecl oracle::occi::Environment::terminateEnvironment(class oracle::occi::Environment *)" (?terminateEnvironment@Environment@occi@oracle@@SAXPAV123@@Z)rnrn1>C:\Users\my\documents\visual studio 2012\Projects\ConnectDatabase\Release\ConnectDatabase.exe : fatal error LNK1120: 2 个无法解析的外部命令rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rnrn代码如下:rn[code=c]rnrn// ConnectDatabase.cpp : 定义控制台应用程序的入口点。rn//rn#include "stdafx.h"rnrn#define WIN32COMMON //避免函数重定义错误rnrn#include rnrnusing namespace std;rnrnusing namespace oracle::occi;rnrnint main()rnrnrnrn Environment *env=Environment::createEnvironment();rnrn cout<<<
菜鸟求大神指导
int res(int a,int b,int prio)rnrn int x=14,y=14,z=14;rn if(a!=b)rn rn if(a*2*2+b>prio)rn x=a;rn printf("%d ",x);rn if(b*2*2+a>prio)rn y=b;rn printf("%d ",y);rn if(prio-a-b>0)rn z=prio-a-b+1;rn printf("%d \n",z);rn return min(z,min(x,y)); rn rnrn这是我写的一个简单地函数,传递的值为a=1,b=2,prio=15;可是运行出来的结果并不是13啊,当把这个函数直接写进主函数的时候结果又正确,求解释,这是怎么回事
求助!!求大神指导!!
安装服务器版的Ubuntu18.04 出现的错误!求大神指导。感激不尽!!!
菜鸟求大神指导
想做一个串口驱动,有点糊涂了,记得mincicom和板子连接时要串口线,如果在配置内核时把已有的串口驱动的模块去掉,那么怎样加载自己写的驱动呢?
C#求大神指导。。。
有一张表。。rn rntable arn(rnno char(9),rnna char(8),rnse char(4)rnrn)rnrn在连接数据库SQL server08后,我想将数据都显示在窗体中。。怎么实现呢。。求指点。。。
初学者求大神指导
小弟初学Java遇到一个难题,求大神指导。rnrn题目:从键盘输入三个数,并赋值,比较之后按从小到大的顺序输出。
大神指导SQL
Public Function LoadEQPDailyReport(Optional ByVal AreaNo As String = defString, Optional ByVal EquipmentNo As String = defString, _rn Optional ByVal StartTime As Date = defDateTime, Optional ByVal EndTime As Date = defDateTime, Optional ByVal AdditionalXml As String = "") As Stringrn Dim cnnTemp As OleDb.OleDbConnectionrn Dim daTemp As OleDb.OleDbDataAdapterrn Dim dsTemp As DataSetrn Dim drTemp As OleDb.OleDbDataReaderrn Dim strSQL As Stringrn Dim StartEndTime As Doublern Dim Rows() As DataRowrn Tryrn '//Create connectionrn cnnTemp = objLic.CreateConnection(strConnectionString)rn strSQL = "Select * From tblEQPStateBasis Order By EquipmentState"rn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn strSQL = " Select (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) AreaNo," & _rn " (Select EquipmentType From tblEQPEquipmentBasis Where EquipmentNo = Z.EquipmentNo) EquipmentType," & _rn " Z.EquipmentNo," & _rn " 0 Moves"rn StartEndTime = DateDiff(DateInterval.Second, StartTime, EndTime)rn Do While drTemp.Readrn If strDataBaseType = "oracle" Thenrn rn strSQL = strSQL & " ,Nvl(Round(( Select Sum(Least(A.EndTime,To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')) -" & _rn " Greatest(A.StartTime,To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')))*24*60*60" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, SysDate EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime to_date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS')" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState)/" & StartEndTime & "*100,2),0) """ & drTemp("StateName") & """"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = strSQL & " ,ISNull(Round((CAST((Select Sum(DateDiff(Second," & _rn " (Case" & _rn " When A.StartTime > '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.StartTime" & _rn " Else '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)," & _rn " (Case" & _rn " When A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "' Then A.EndTime" & _rn " Else '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " End)))" & _rn " From (Select EquipmentType, EquipmentNo, EquipmentState, StartTime, EndTime From tblEMSEquipmentStateLog" & _rn " UNION All" & _rn " Select EquipmentType, EquipmentNo, EquipmentState, StartTime, GetDate() EndTime From tblEMSEquipmentState" & _rn " ) A" & _rn " Where A.StartTime '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EquipmentState = " & drTemp("EquipmentState") & _rn " And A.EquipmentNo = Z.EquipmentNo" & _rn " Group By A.EquipmentNo, A.EquipmentState) as float) /CAST(" & StartEndTime & " AS float))*100,2),0) " & drTemp("StateName")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn strSQL = strSQL & " From tblEQPEquipmentBasis Z" & _rn " Where Z.EquipmentNo Is Not Null"rn rn If AreaNo <> defString Thenrn strSQL = strSQL & " And (Select ContainareaNo From tblSMDAreaRelation Where ObjectNo = Z.EquipmentNo And ObjectType = 2) = '" & AreaNo & "'"rn End Ifrn rn If EquipmentNo <> defString Thenrn strSQL = strSQL & " And EquipmentNo In ('" & Replace(EquipmentNo, ",", "','") & "')"rn End Ifrn rn If AdditionalXml <> "" Thenrn '//additionalconditionrn strSQL = strSQL & SeparateAddXML_Condition(AdditionalXml)rn End Ifrn strSQL = strSQL & " Order By EquipmentNo"rn '//Select Datarn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn daTemp = New OleDb.OleDbDataAdapter(cmmTemp)rn dsTemp = New DataSetrn daTemp.Fill(dsTemp, "EQPDailyReport")rn If strDataBaseType = "oracle" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= To_Date('" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn " And A.EndTime < To_Date('" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "','YYYY/MM/DD HH24:MI:SS') " & _rn "Group By EquipmentNo"rn ElseIf DataBaseType = "mssql" Or DataBaseType = "msaccess" Thenrn strSQL = " Select EquipmentNo, Sum(B.GoodQty) Moves" & _rn " From tblWIPCont_Equipment A, tblWIPLotLog_Report B" & _rn " Where A.LogGroupSerial = B.LogGroupSerial" & _rn " And A.EndTime Is Not Null " & _rn " And A.EndTime >= '" & Format(CDate(StartTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn " And A.EndTime < '" & Format(CDate(EndTime), "yyyy/MM/dd HH:mm:ss") & "'" & _rn "Group By EquipmentNo"rn End Ifrn cmmTemp = New OleDb.OleDbCommand(strSQL, cnnTemp)rn drTemp = cmmTemp.ExecuteReader()rn Do While drTemp.Readrn Rows = dsTemp.Tables("EQPDailyReport").Select("EquipmentNo = '" & drTemp("EquipmentNo") & "'")rn If Rows.Length <> 0 Thenrn Rows(0).Item("Moves") = drTemp("Moves")rn End Ifrn Looprn drTemp.Close()rn cmmTemp.Dispose()rn '//Combine Return Valuern LoadEQPDailyReport = CombineXMLReturnValue("loadeqpdailyreport", "EQPDailyReport", _rn "DataSet", FormatXMLSchema(dsTemp.GetXmlSchema), dsTemp.GetXml, "")rn Catch e1 As Exceptionrn LoadEQPDailyReport = "fail"rn rn Throw 'New Exception("clsReport.LoadEQPDailyReport: " & e1.Message)rn Finallyrn Call objLic.CloseConnection(cnnTemp)rn If Not daTemp Is Nothing Thenrn daTemp.Dispose()rn End Ifrn If Not dsTemp Is Nothing Thenrn dsTemp.Dispose()rn End Ifrn End Tryrn End Functionrnrnrn谁能帮我从里面抠出最终的SQL来,用的是ORACLE数据库
求jstree大神指导
用jstree插件,遇到一个问题 ,使用jstree checkbox的时候,选中父节点下的所有子节点,父节点才是selected状态,才能拿到父节点的id。 我想知道  怎么只选中父节点下的一个或多个子节点 ,也能拿到父节点的id。如下图 父节点是半选状态  也能拿到父节点和子节点的id。 求大神指导~
求各位大神指导……
rn rn rn rnrn我把Winform的webbrowser控件添加到WPF中,但是无法用XAML对它定位,上面代码提示出错,我是手动添加上去的,请问应该怎样做才能对它实现精确定位,也就是说我想把它拉到哪就哪……rn
大神指导,十万火急!!!
如何只用action调用别的网站的查找功能查找地址所在位置?n如:输入自定义接口http://127.0.0.1:8080/WebManagePlatform/inter/hc_ip.do?ip=121.199.26.86n就可以查找ip地址所在位置。n求大神指导........n
大神指导
需要用WPF做一个类似于PL/SQL的SQL语句编辑器,求资料,求指导
新手求大神指导~~~
public class SimpleTypesrn public static void main(String[] args)rn System.out.printf("byte \t数值范围: %d ~ %d\n",Byte.MAX_VALUE, Byte.MIN_VALUE);rn System.out.printf("short \t数值范围:%hd ~ %hd\n",Short.MAX_VALUE, Short.MIN_VALUE);rn System.out.printf("int \t数值范围: %d ~ %d\n",Integer.MAX_VALUE, Integer.MIN_VALUE);rn System.out.printf("long \t数值范围:%ld ~ %ld\n",Long.MAX_VALUE, Long.MIN_VALUE);rn System.out.printf("char \t数值范围: %c ~ %c\n",Character.MAX_VALUE, Character.MIN_VALUE);rn System.out.printf("float \t数值范围: %f ~ %f\n",Float.MAX_VALUE, Float.MIN_VALUE);rn System.out.printf("double \t数值范围:%lf ~ %lf\n",Double.MAX_VALUE, Double.MIN_VALUE);rn rn rnrn为啥char,float,double都不能用呢?我看过这三个都有MAX_VALUE和MIN_VALUE啊。。。求指导。。。rn运行结果如下:rnbyte 数值范围: 127 ~ -128rnshort 数值范围:7fffd ~ ffff8000drnint 数值范围: 2147483647 ~ -2147483648rnException in thread "main" java.util.UnknownFormatConversionException: Conversion = 'l'rn at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2606)rn at java.util.Formatter$FormatSpecifier.(Formatter.java:2634)rn at java.util.Formatter.parse(Formatter.java:2480)rn at java.util.Formatter.format(Formatter.java:2414)rn at java.io.PrintStream.format(PrintStream.java:920)rn at java.io.PrintStream.printf(PrintStream.java:821)rn at SimpleTypes.main(SimpleTypes.java:7)
大神们求指导
为什么graphical layout 中没有文字编辑的控件[img=http://img.bbs.csdn.net/upload/201310/13/1381654097_97449.png][/img]
大神指导!!!
五月 05, 2017 3:41:57 下午 org.apache.tomcat.util.digester.SetPropertiesRule beginrn警告: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:manage' did not find a matching property.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server version: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server built: Mar 28 2017 16:01:48 UTCrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Server number: 7.0.77.0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Name: Windows 7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: OS Version: 6.1rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Architecture: amd64rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Java Home: C:\Program Files\Java\jre7rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Version: 1.7.0_04-b22rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: JVM Vendor: Oracle Corporationrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_BASE: E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: CATALINA_HOME: D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:51933rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.base=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dcatalina.home=D:\develop\apache-tomcat-7.0.77rn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dwtp.deploy=E:\yangran\code\manage1\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebappsrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Djava.endorsed.dirs=D:\develop\apache-tomcat-7.0.77\endorsedrn五月 05, 2017 3:41:57 下午 org.apache.catalina.startup.VersionLoggerListener logrn信息: Command line argument: -Dfile.encoding=GBKrn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: Loaded APR based Apache Tomcat Native library 1.2.12 using APR version 1.5.2.rn五月 05, 2017 3:41:57 下午 org.apache.catalina.core.AprLifecycleListener lifecycleEventrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized (OpenSSL 1.0.2k 26 Jan 2017)rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["http-apr-8080"]rn五月 05, 2017 3:41:58 下午 org.apache.coyote.AbstractProtocol initrn信息: Initializing ProtocolHandler ["ajp-apr-8009"]rn五月 05, 2017 3:41:58 下午 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1758 msrn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardService startInternalrn信息: Starting service Catalinarn五月 05, 2017 3:41:58 下午 org.apache.catalina.core.StandardEngine startInternalrn信息: Starting Servlet Engine: Apache Tomcat/7.0.77rn五月 05, 2017 3:41:59 下午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)rn at java.util.concurrent.FutureTask.get(Unknown Source)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1119)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:819)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/manage]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162)rn ... 7 morernCaused by: java.lang.IllegalArgumentException: The servlets named [manage1.Single2Search] and [manage1.Single2Search2] are both mapped to the url-pattern [/Single2Search] which is not permittedrn at org.apache.catalina.deploy.WebXml.addServletMapping(WebXml.java:293)rn at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2458)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2133)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2094)rn at org.apache.catalina.startup.ContextConfig.processAnnotationsFile(ContextConfig.java:2086)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1303)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:888)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:388)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5522)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)rn ... 7 morernrnrn
大神指导
我们需要弹出一个窗口,输入一行字符串,统计其中的单词个数rnrnrn#includern /*输入一行字符串,统计其中有多少单词,单词之间用空格分隔开*/rnvoid main() rnrn char string[81];rn int i,num=0,word=0;rn char c;rn rn gets(string);rn for(i=0;(c=string[i])!='\0';i++)rn if(c=='')rn word=0;rn rn else if(word==0)rn rn word=1;rn num++;rn rn rnprintf("There are %d words in the line.\n",num);rn
新手求大神指导
学好地理信息系统专业,哪些程序设计语言、数据库是必须要熟练的?谢谢
我们是很有底线的