怎样通过JSP页面上传个Excel文件,并实现Java读取EXCEL存入数据库

用的语言是servlet+jsp+mysql和后面两个包commons-fileupload-1.3.1.jar
jxl.jar 在线等,有没有会这个代码的大神

4个回答

mutojack
mutojack 快19年的菜鸡程序员看到第一个链接的内容终于理解并且实现了,感谢
大约一年之前 回复

jsp上传文件的话 有很多方法
fileupload什么的
struct2有单独的上传的拦截器。。。
读取excel的话 jxl poi 等一下方法 谷歌一下

用PageOffice产品就可以,要花点钱,不过物有所值。以前集成PageOffice产品的时候,示例中就有一个导入EXCEL存入数据库的demo,楼主下载一下PageOffice开发包,看看demo。

楼上说的PageOffice挺腻害的,很好使,建议楼主试试

qq_21903999
qq_21903999 怎么用呢?麻烦给个demo,谢谢
3 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
java poi excel导出怎么制作标题
一个导出的excel,内容包括大标题,列标题和数据,现在这个大标题不会弄。用的是HSSFWorkbook。我是新手,希望能说的详细一点,多谢!我这样写的 HSSFWorkbook wb = new HSSFWorkbook(); HSSFSheet sheet = wb.createSheet("report"); //--- sheet.addMergedRegion(new CellRangeAddress(0,0,0,7)); HSSFRow rowheader = sheet.createRow(0); HSSFCell cellheader = rowheader.createCell(0); cellheader.setCellValue("标题内容"); //-- HSSFRow row = sheet.createRow(1); HSSFCell cell = row.createCell(0); String[] headNames=new String[]{"工号","姓名","迟到次数","早退次数","夜班","周末班","节假日班","总工时"}; for (int k=0;k<headNames.length;k++) { cell=row.createCell(k); cell.setCellValue(headNames[k]); cell.setCellStyle(headStyle); } List<Workhour> list = workhourBizImpl.findByParamGruopForExcel(workhour); for (int i = 0; i < list.size(); i++){ --数据 } 但是我一加//里面的代码,列标题就没了。。。
exe ,Excel共同访问一个COM怎么实现
我现在写了一个C#的com,想让一个Exe,在产生信息号时,通过接口向COM中写值,当值写完成后,通知Exce的RTD读数据。ClientExcelValue.m_Ordercallback.UpdateNotify(); //通知Excel读数据。而在excel中=RTD("ShZd|OrderInfo", , "index"); 通过public int ServerStart(IRTDUpdateEvent callback) { ClientExcelValue.m_Ordercallback = callback; return 1; } 设置,这样看来是可行的,但实际使用中,怎么发现ClientExcelValue.m_Ordercallback始终是null,而最先运行的是excel的RTD("ShZd|OrderInfo", , "index")。如果调试,会发现ClientExcelValue.m_Ordercallback它有值,但2个程序(exe,excel)同时运行,通过exe的调试,发现ClientExcelValue.m_Ordercallback始终为null,所以不能操作下去。是不是exe,excel分别初始化了COM,导致2个对象在内存中不是访问的同一个COM实例?? 那么我改怎么办?在线等,高手帮忙!
.NET 基于Office excel 转 word 怎么实现,求大神指教
exce中有表格,合并单元格 等信息,Excel转word。 求大神指教
求mfc 读写Excel的类,可以支持wps表
之前的操作Excel总是出现wps问题或者创建exce服务器失败,所以想求一个强大点的excel操作类
Python第三方库openpyxl如何对Exce提取指定字符的所在行
初学Python, 被这个问题困扰了好久了。 我想提取Excel每一行的第一个单元格为字符"Air"的行的内容。 尝试了以下代码,但是没能成功,还请前辈们指教。谢过! from openpyxl import Workbook from openpyxl import load_workbook wb=load_workbook("C:/Users/SSSVV/Desktop/Air log/Air log now 1207.xlsx") sheet_names=wb.sheetnames ws=wb[sheet_names[0]] maxrow=ws.max_row maxcol=ws.max_column ID="air" i=1 for i in ws.rows: for cell in i: if ID in ws.cell(row=i,column=1).value: print(cell.value)
openpyxl写入excel后打开报错“已删除的记录: /xl/comments/comment1.xml 部分的 批注 (批注)”?
CompareExcel.py代码如下: ``` from openpyxl.styles import Font,Alignment,Side,Border,Color,colors,PatternFill from MMSpackagefile.codefile.ExcelData import ExcelData class CompareExcel(object): def __init__(self): pass def settruecelltype(self, sheet, row, col): cell = sheet.cell(row, col) font = Font(size=12, bold=False, name='Arial', color=colors.BLACK) thin = Side(border_style='thin', color='0000FF') border = Border(left=thin, right=thin, top=thin, bottom=thin) cell.font = font cell.border = border def setfalsecelltype(self, sheet, row, col): cell = sheet.cell(row, col) font = Font(size=12, bold=False, name='Arial', color=colors.RED) fill = PatternFill(start_color=colors.YELLOW, end_color=colors.YELLOW, fill_type='solid') thin = Side(border_style='thin', color='0000FF') border = Border(left=thin, right=thin, top=thin, bottom=thin) cell.fill = fill cell.font = font cell.border = border #expectlist,actlist 分别为预期返回list和实际返回list; #data 为案例sheet页中过滤的案例数据; #fullfield 为所有字段项去重(无论是否都需要比较,即是结果明细sheet页中标题字段)fulladdfield所有添加字段项去重 #categoryfield为从案例中获得的比较字段类; #sheetfield为配置文件excel里,比较字段sheet页里获取的list,其中list1为所有的子字段列表,list2为添加的字段列表,list3为两个dict,key分别为IsCompare和IsAdd def comp(self, expectlist, actlist, data, full, fulladdfield, categoryfield, sheetfield, sheet_result): comparefield = [] #为根据案例中的需比较字段类获得的需比较字段项 addfield = [] #为根据案例中的需比较字段类获得的需比较添加字段项 rownum = sheet_result.max_row fullli = ExcelData().sort_list(full) fullfield = fullli[:-1] if len(fulladdfield) != 0: fullfield = [e for e in fullfield if e not in fulladdfield] for j in categoryfield: for m in sheetfield: if m.get('checkfield') == 'IsCompare': comparefield.extend(list(m.get(j).split(','))) else: if not m.get(j) != m.get(j): addfield.extend(list(m.get(j).split(','))) if len(expectlist) == len(actlist) and len(expectlist) != 0: sumlogicvalue = CompareExcel().setresultsheet(expectlist, actlist, fullfield, fulladdfield, comparefield, addfield, data, sheet_result, rownum) if len(expectlist) != 1: sheet_result.merge_cells(start_row=rownum + 1, start_column=1, end_row=rownum + len(expectlist), end_column=1) # return sumlogicvalue elif len(expectlist) == len(actlist) and len(expectlist) == 0: rowvalue = [] rowvalue.append(data.get('case_id')) sumlogicvalue = False for q in range(2, 2*len(fullfield)+len(fulladdfield)+2): rowvalue.append('') rowvalue.append(sumlogicvalue) sheet_result.append(rowvalue) CompareExcel().settruecelltype(sheet_result, rownum+1, 1) for w in range(2, 2*len(fullfield)+len(fulladdfield)+3): CompareExcel().setfalsecelltype(sheet_result, rownum+1, w) # return sumlogicvalue elif len(expectlist) > len(actlist): commonexpectlist = [] commonactlist = [] surplusexpectlist = [] for i in expectlist: sign = 0 for j in actlist: if i['data']['id'] == j['data']['id']: sign = 1 commonexpectlist.append(i) commonactlist.append(j) if sign == 0: surplusexpectlist.append(i) CompareExcel().setresultsheet(commonexpectlist, commonactlist, fullfield, fulladdfield, comparefield, addfield, data, sheet_result, rownum) si = 'ex' CompareExcel().setsurlistvalue(si, surplusexpectlist, fullfield, fulladdfield, sheet_result, rownum, commonexpectlist) sheet_result.merge_cells(start_row=rownum + 1, start_column=1, end_row=rownum + len(expectlist), end_column=1) sumlogicvalue = False # return sumlogicvalue else: commonexpectlist = [] commonactlist = [] surplusexpectlist = [] for i in actlist: sign = 0 for j in expectlist: if i['data']['id'] == j['data']['id']: sign = 1 commonactlist.append(i) commonexpectlist.append(j) if sign == 0: surplusexpectlist.append(i) CompareExcel().setresultsheet(commonexpectlist, commonactlist, fullfield, fulladdfield, comparefield, addfield, data, sheet_result, rownum) si = 'ac' CompareExcel().setsurlistvalue(si, surplusexpectlist, fullfield, fulladdfield, sheet_result, rownum, commonexpectlist) sheet_result.merge_cells(start_row=rownum + 1, start_column=1, end_row=rownum + len(actlist), end_column=1) sumlogicvalue = False return sumlogicvalue def setresultsheet(self, expectlist, actlist, fullfield, fulladdfield, comparefield, addfield, data, sheet_result, rownum): for i in range(len(expectlist)): rowvalue = [] expectreturn = [] actreturn = [] addreturn = [] logicvalue = True columnnum = [] for j in range(len(fullfield)): if fullfield[j] in comparefield: # if fullfield[j] == 'name': # actlist[i]['data'][fullfield[j]] = '浦发银' if fullfield[j] in list(expectlist[i]['data'].keys()): expectreturn.append(expectlist[i]['data'][fullfield[j]]) else: expectreturn.append('') if fullfield[j] in list(actlist[i]['data'].keys()): actreturn.append(actlist[i]['data'][fullfield[j]]) else: actreturn.append('') if expectlist[i].get('data').get(fullfield[j]) != actlist[i].get('data').get(fullfield[j]): logicvalue = False columnnum.append(2+j) columnnum.append(2+j+len(fullfield)) columnnum.append(2*len(fullfield)+len(fulladdfield)+2) else: expectreturn.append('') actreturn.append('') if len(fulladdfield) != 0: logicvalue = False columnnum.append(2 * len(fullfield) + len(fulladdfield) + 2) for m in range(len(fulladdfield)): if fulladdfield[m] in addfield: columnnum.append(2 + 2 * len(fullfield) + m) if fulladdfield[m] in list(actlist[i].get('data').keys()): addreturn.append(actlist[i].get('data').get(fulladdfield[m])) else: addreturn.append('') else: addreturn.append('') if i == 0: rowvalue.append(data.get('case_id')) else: rowvalue.append('') rowvalue.extend(expectreturn) rowvalue.extend(actreturn) if len(addreturn) != 0: if len(addreturn) == 1: rowvalue.append(addreturn) else: rowvalue.extend(addreturn) rowvalue.append(logicvalue) sheet_result.append(rowvalue) for o in range(1, 2*len(fullfield)+len(fulladdfield)+3): if o in columnnum: CompareExcel().setfalsecelltype(sheet_result, rownum + 1 + i, o) else: CompareExcel().settruecelltype(sheet_result, rownum + 1 + i, o) return logicvalue def setsurlistvalue(self, sig, surplusexpectlist, fullfield, fulladdfield, sheet_result, rownum, commonexpectlist): for k in surplusexpectlist: surrowvalue = [''] expectlis = [] actlis = [] for l in fullfield: sign = 0 if l in list(k['data'].keys()): sign = 1 expectlis.append(k['data'][l]) if sign == 0: expectlis.append('') actlis.append('') if sig == 'ex': surrowvalue.extend(expectlis) surrowvalue.extend(actlis) else: surrowvalue.extend(actlis) surrowvalue.extend(expectlis) if len(fulladdfield) != 0: addlis = [] for m in fulladdfield: if m in list(k['data'].keys()): addlis.append(k['data'][m]) addlis.append('') surrowvalue.extend(addlis) surrowvalue.append('False') sheet_result.append(surrowvalue) for t in range(len(surplusexpectlist)): for n in range(2, len(surrowvalue) + 1): CompareExcel().setfalsecelltype(sheet_result, rownum + 1 + len(commonexpectlist) + t, n) ``` test_stock_info.py内容如下: ``` import pytest import os import time import openpyxl as op from MMSpackagefile.codefile.ExcelData import ExcelData from MMSpackagefile.codefile.CompareExcel import CompareExcel path1 = 'E:\\MMS\\myfirstproject\\MMSpackagefile\\configdatasource\\stock_info_option12.xlsx' path2 = 'E:\\MMS\\myfirstproject\\MMSpackagefile\\configdatasource\\mms_cofigfile.xlsx' executecase = ExcelData().getexecutecase(path1, 1, 0) #返回可执行案例的list configcomparefield = ExcelData().getexcelfield(path1, 0, 0) #返回stock_info_option12.xlsx第一个sheet页的比对字段list configcomparefield1 = ExcelData().getexcelfield(path1, 0, 0) dirpath = os.path.abspath('..') version_list = ExcelData().getversion(path2, 0, 1) #返回配置文件的版本信息 localtime = time.strftime('%Y%m%d%H%M%S', time.localtime()) path = dirpath + '\\Result\\' + version_list[0] + '_' + version_list[1] + '_' + localtime os.makedirs(path) excel = op.load_workbook(path2) excel.save(path + '\\mms_cofigfile_' + localtime + '.xlsx') exce = op.load_workbook(path1) comparefield, addfield, sheetfield = ExcelData().getfullfielditem(configcomparefield1) excel, sheet = ExcelData().setresulttitle(comparefield, addfield, exce) @pytest.fixture(scope='module') def stock_info(request): value = {} value['case_id'] = request.param['case_id'] value['title'] = request.param['title'] value['ticker'] = request.param['ticker'] value['exchange'] = request.param['exchange'] value['asset_class'] = request.param['asset_class'] value['IsCompare'] = request.param['IsCompare'] value['IsAdd'] = request.param['IsAdd'] return value @pytest.mark.parametrize('stock_info', executecase, indirect=True) def test_stock_info(stock_info): configdata = ExcelData().getversion(path2, 0, 1) oldreturnlist = ExcelData().getrequestdata(configdata[2], stock_info, 'stock-info') newreturnlist = ExcelData().getrequestdata(configdata[3], stock_info, 'stock-info') categoryfield = stock_info.get('IsCompare').split(',') isbool = CompareExcel().comp(oldreturnlist, newreturnlist, stock_info, comparefield, addfield, categoryfield, configcomparefield, sheet) ExcelData().setcolumnautowidth(sheet) excel.save(path + '\\stock_info_option12_' + localtime + '.xlsx') assert isbool ``` 现在有两个问题,一个是CompareExcel.py里函数setresultsheet最后一行logicvalue高亮显示: 提示:This inspection warns about local variables referenced before assignment.我并未在函数外部使用过这个变量logicvalue为什么会有这种提示? 第二个问题,我用openpyxl写excel文件,打开时候提示 ![图片说明](https://img-ask.csdn.net/upload/201912/17/1576586295_401469.png) 不太清楚这个提示是因为什么原因引起的,,之前也出现过这个问题,后来检查是因为重复保存的原因,改成保存一次就好了,现在又出现这个问题,几天了还没排查到原因,哪位大神看下?
poi导入exce到数据库,两次导入相同的数据,如何判断导入第二次的时候只更新
poi导入exce到数据库,两次导入相同的数据,如何判断导入第二次的时候只更新
java.lang.NoSuchFieldError: STANDARD_NUMBER_TYPES
springMVC项目出现了这个错误。。真心不知道怎么搞。。求大佬。。 ``` 严重: Exception sending request initialized lifecycle event to listener instance of class [org.springframework.web.context.request.RequestContextListener] java.lang.NoSuchFieldError: STANDARD_NUMBER_TYPES at org.springframework.web.context.request.ServletRequestAttributes.<clinit>(ServletRequestAttributes.java:55) at org.springframework.web.context.request.RequestContextListener.requestInitialized(RequestContextListener.java:59) at org.apache.catalina.core.StandardContext.fireRequestInitEvent(StandardContext.java:5826) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:625) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:498) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:796) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1372) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) ```
EXCE小问题,类型不匹配,请解答
Sub TIANXIE() Dim m As Integer Dim n As Integer For n = 2 To 10 Step 1 If Cells(n, 2).Value = "#N/A" Then Cells(n, 3).Value = "" Cells(n, 3).Value = "20150401" Else Cells(n, 3).Value = Cells(n, 2).Value End If Next n End Sub
关于ThreadLocal的一个测试 大神 帮我看下 为什么run方法里面找不到对象 (为了方便 我把他们都写到一个类中)
<div class="iteye-blog-content-contain" style="font-size: 14px;"> <p>直接贴代码了</p> <pre name="code" class="java">package test; public class TestThreadLocal { public static void main(String[] args) { /*ExecutorService exce = Executors.newCachedThreadPool(); for(int i=0;i&lt;10;i++){ exce.execute(new Thread(new TestThread(),"this is thread:"+i)); } exce.shutdown(); } */ //一个公共的对象 TestI testI = new TestI(); //创建一个ThreadLocal来维护这个对象 LocalObject localObject = new LocalObject(); localObject.addTestI(testI); // System.out.println(localObject.getTestI().getI()); for(int i=0;i&lt;10 ;i++){ new Thread(new TestThread(localObject),"this is thread:"+i).start(); } } } class LocalObject{ //创建一个ThreadLocal 用来维护对象TestI private ThreadLocal&lt;TestI&gt; testIocal = new ThreadLocal&lt;TestI&gt;(); public void addTestI(TestI testI){ testIocal.set(testI); } public TestI getTestI(){ return testIocal.get(); } public void doSomeThing(){ getTestI().setI(); } } class TestThread implements Runnable{ private LocalObject localObject ; public TestThread(LocalObject localObject){ this.localObject = localObject; } private int i=10; @Override public void run() { while(this.localObject.getTestI().getI()&gt;0){ this.localObject.doSomeThing(); i--; if(this.localObject.getTestI().getI()!=i){ System.out.println(Thread.currentThread().getName()+"not matched"); } // System.out.println(Thread.currentThread().getName()+"::"+LocalObject.getTestI().getI()); } } } class TestI { private int i=10; public void setI(){ i--; } public int getI(){ return i; } }</pre> <p> 报错是Exception in thread "this is thread:1" java.lang.NullPointerException<br>    at test.TestThread.run(TestThreadLocal.java:75)</p> <p> </p> <p>就是run方法里面找不到对象,但是我通过构造方法注入了一个对象了呀。怎么回事 搞了2天了。。。</p> </div>
一个关于Android编成问题
代码如下: public class get extends MainActivity { Socket socket; BufferedReader in; private EditText OP; EditText dose=(EditText)findViewById(R.id.editText); public get() { try { Socket socket = new Socket("192.168.11.254", 8080); BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream())); new gd().start(); } catch (IOException e) { e.printStackTrace(); } } class gd extends Thread { public void run() { while (this.isAlive()) { try { String kk = in.readLine(); int k = (kk.lastIndexOf("dose")); String z; z = kk.substring(k + 5, k + 10); Thread.sleep(50); } catch (Exception e) { e.printStackTrace(); } } } } } 提示如下: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.Window.findViewById(int)' on a null object reference 如何解决?
最近碰到dubbox 里面添加filter的问题,网上找了下,也没有啥效果,想问问有谁也碰到过?
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are: PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'filter' threw exception; nested exception is java.lang.IllegalStateException: No such extension AuthorityFilter for filter/com.alibaba.dubbo.rpc.Filter at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101) at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1450) ... 13 more
Android 以一段字符串为分割点分割另一段字符串
如何以字符串为分割点将另一字符串分割成两段。例如:IOException 以Exce为分割点分割为IO和ption两段。
action调用service无限报空指针,试了很多方法都没用
index.jsp ``` <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> <% String path = request.getContextPath(); String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSP 'index.jsp' starting page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="This is my page"> <!-- <link rel="stylesheet" type="text/css" href="styles.css"> --> </head> <body> <script type="text/javascript"> window.location.href = "Test_test.do"; </script> </body> </html> ``` action ``` package com.action; import com.opensymphony.xwork2.ActionSupport; import com.service.StuService; public class TestAction extends ActionSupport { private StuService stuService; public String test() throws Exception { System.out.println("进入action"); stuService.getArraylist(); return "success"; } public StuService getStuService() { return stuService; } public void setStuService(StuService stuService) { this.stuService = stuService; } } ``` dao ``` package com.dao; import com.entity.Log; public interface LogDAO { public void saveLog(Log log); public void finfLog(); } ``` daoImpl ``` package com.dao.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import javax.annotation.Resource; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.stereotype.Component; import com.dao.LogDAO; import com.entity.Log; @Component public class LogDAOImpl implements LogDAO { private SessionFactory sessionfactory; public void saveLog(Log log) { Session session = sessionfactory.getCurrentSession(); session.save(log); // throw new NullPointerException(); } public void finfLog() { Session session = sessionfactory.getCurrentSession(); Query query = session.createQuery(" from Log"); ArrayList<Log> p = (ArrayList<Log>) query.list(); for (int i = 0; i < p.size(); i++) { System.out.println(p.get(i).getMassage()); } } public SessionFactory getSessionfactory() { return sessionfactory; } @Resource public void setSessionfactory(SessionFactory sessionfactory) { this.sessionfactory = sessionfactory; } } ``` 实体类 ``` package com.entity; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; @Entity @Table(name="t_log") public class Log { private int id; private String massage; public Log() { super(); } public Log(int id, String massage) { super(); this.id = id; this.massage = massage; } @Id @SequenceGenerator(name = "SEQ_STORE", sequenceName = "stu_seq") @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_STORE") public int getId() { return id; } public void setId(int id) { this.id = id; } public String getMassage() { return massage; } public void setMassage(String massage) { this.massage = massage; } } ``` service ``` package com.service; import javax.annotation.Resource; import org.springframework.stereotype.Component; import org.springframework.transaction.annotation.Transactional; import com.dao.LogDAO; import com.dao.StuDAO; import com.entity.Log; import com.entity.Stu; @Component // 业务逻辑层 public class StuService { private StuDAO stuDao; private LogDAO logDao; @Transactional public void getArraylist() throws Exception { // stuDao.getStu(); logDao.finfLog(); } @Resource public void setLogDao(LogDAO logDao) { this.logDao = logDao; } } ``` spring配置 ``` <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> <context:annotation-config /> <context:component-scan base-package="com" /> <!-- 数据源 --> <bean id="DataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value="jdbc:oracle:thin:@localhost:1521:STUDY" /> <property name="username" value="sys as SYSDBA" /> <property name="password" value="7998" /> </bean> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource" ref="DataSource" /> <property name="packagesToScan"> <list> <value>com.entity</value> </list> </property> <!-- Hibernate内容 --> <property name="hibernateProperties"> <value> hibernate.dialect = org.hibernate.dialect.OracleDialect hibernate.show_sql = true hibernate.format_sql = true </value> <!-- <props> <prop key="hibernate.dialect">org.hibernate.dialect.OracleDialect</prop> <prop key="hibernate.show_sql">true</prop> </props> --> </property> </bean> <bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean> <tx:advice id="txAdvice" transaction-manager="txManager"> <tx:attributes> <tx:method name="get*" read-only="true" /> <tx:method name="*" rollback-for="Exce ption" /> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="txPointcut" expression="execution(* com.service.*.*(..))" /> <aop:advisor advice-ref="txAdvice" pointcut-ref="txPointcut" /> </aop:config> <bean name="testAction" class="com.action.TestAction"> <property name="stuService" ref="stuService"> </property> </bean> </beans> ``` struts配置 ```<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <!-- 从2.3.16开始DMI默认是禁止的 全称是:动态方法调用 --> <constant name="struts.enable.DynamicMethodInvocation" value="true"></constant> <!-- <constant name="struts.devMode" value="true"></constant> --> <constant name="struts.action.extension" value="do"></constant> <package name="MyPackage" namespace="/" extends="struts-default"> <!-- 约定优于配置 --> <action name="*_*" class="com.action.{1}Action" method="{2}"> <result>/success.jsp</result> </action> </package> </struts> ```
今天我们项目weblogic突然死掉了,各位帮忙诊断下!
各位大虾: 今天我们的项目weblogic突然死掉,这是一个地级市的协同办公项目,因为使用的用户较多,死掉之后用户无法及时使用,这给我们造成了很大的麻烦,甲方要求不得在出现第二次,项目组苦思冥想都不知道这是什么原因,各种搜索资源都已尝试,仍未找到缘由,特上来请教各位大侠 项目环境: oracle 10g; weblogic 10; windows 2003(目前是试运行,后面可能会更换成 redhat or solaris); 然后在附上weblgoic的堆栈信息,如下: [code="java"] <2011-6-14 上午08时36分48秒 CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet. internal.WebAppServletContext@180b6f2 - appName: 'wzoa', name: 'wzoa', context-p ath: '', spec-version: 'null'] Servlet failed with Exception java.lang.NullPointerException at com.gw.util.PageFilter.doFilter(PageFilter.java:24) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at com.gw.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:79) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:3496) Truncated. see log file for complete stacktrace > at java.util.zip.Inflater.ensureOpen(Inflater.java:332) at java.util.zip.Inflater.inflateBytes(Inflater.java:346) at java.util.zip.Inflater.inflate(Inflater.java:216) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:135) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.FilterInputStream.read(FilterInputStream.java:90) at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at org.extremecomponents.table.core.TableProperties.init(TableProperties .java:40) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:69) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:46) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:39) at com.gw.util.PageLimit.<init>(PageLimit.java:50) at com.gw.util.PageLimit.<init>(PageLimit.java:40) at com.gw.util.PageFilter.setPageLimit(PageFilter.java:49) at com.gw.util.PageFilter.doFilter(PageFilter.java:24) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at com.gw.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:79) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS ervletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC ontext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j ava:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.NullPointerException at java.util.zip.Inflater.ensureOpen(Inflater.java:332) at java.util.zip.Inflater.inflateBytes(Inflater.java:346) at java.util.zip.Inflater.inflate(Inflater.java:216) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:135) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.FilterInputStream.read(FilterInputStream.java:90) at java.util.Properties$LineReader.readLine(Properties.java:418) at java.util.Properties.load0(Properties.java:337) at java.util.Properties.load(Properties.java:325) at org.extremecomponents.table.core.TableProperties.init(TableProperties .java:40) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:69) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:46) at org.extremecomponents.table.limit.TableLimitFactory.<init>(TableLimit Factory.java:39) <2011-6-14 上午08时36分48秒 CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@180b6f2 - appName: 'wzoa', name: ' wzoa', context-path: '', spec-version: 'null'] Servlet failed with Exception java.lang.NullPointerException at com.gw.util.PageFilter.doFilter(PageFilter.java:24) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at com.gw.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:79) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:3496) Truncated. see log file for complete stacktrace > at com.gw.util.PageLimit.<init>(PageLimit.java:50) at com.gw.util.PageLimit.<init>(PageLimit.java:40) at com.gw.util.PageFilter.setPageLimit(PageFilter.java:49) at com.gw.util.PageFilter.doFilter(PageFilter.java:24) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at com.gw.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:79) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate dSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS ervletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC ontext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j ava:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) java.lang.NullPointerException at java.util.zip.Inflater.ensureOpen(Inflater.java:332)<2011-6-14 上午08 时36分48秒 CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppSe rvletContext@180b6f2 - appName: 'wzoa', name: 'wzoa', context-path: '', spec-ver sion: 'null'] Servlet failed with Exception java.lang.NullPointerException at com.gw.util.PageFilter.doFilter(PageFilter.java:24) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at com.gw.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:79) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.ja va:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:3496) Truncated. see log file for complete stacktrace > at java.util.zip.Inflater.inflateBytes(Inflater.java:346) at java.util.zip.Inflater.inflate(Inflater.java:216) at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:135) at java.io.FilterInputStream.read(FilterInputStream.java:116) at java.io.FilterInputStream.read(FilterInputStream.java:90) at java.util.Properties$LineReader.readLine(Properties.java:418)[JRockit ] ERROR: The JVM has crashed. Writing crash information to E:\bea\wlserver_10.3\ samples\domains\wl_server\jrockit.3684.dump. ===== BEGIN DUMP ============================================================= JRockit dump produced after 0 days, 12:47:25 on Tue Jun 14 08:37:19 2011 ********************************************************** * If you see this dump, please go to * * http://edocs.bea.com/jrockit/go2troubleshooting.html * * for troubleshooting information. * ********************************************************** Additional information is available in: E:\bea\wlserver_10.3\samples\domains\wl_server\jrockit.3684.dump E:\bea\wlserver_10.3\samples\domains\wl_server\jrockit.3684.mdmp Error Message: Unspecified error [52] Exception Rec: EXCEPTION_ACCESS_VIOLATION (c0000005) at 0x0046A7B6 - memory at 0 x00000000 could not be written. Minidump : Wrote mdmp. Size is 452MB SafeDllMode : -1 Fatal Error : As of this writing noone should EVER use native stack unwind exce pt myself. Version : BEA JRockit(R) R27.6.0-50_o-100423-1.6.0_05-20080626-2105-windows -ia32 GC Strategy : Mode: throughput. Currently using strategy: genparpar GC Status : OC is not running. Last finished OC was OC#303. : YC is not running. Last finished YC was YC#349. OC History : Strategy genparpar was used for OC#272 to OC#278. : Strategy singleparpar was used for OC#279. : Strategy genparpar was used for OC#280 to OC#284. : Strategy singleparpar was used for OC#285. : Strategy genparpar was used for OC#286 to OC#303. YC History : Ran 1 YCs before OC#299. : Ran 1 YCs before OC#300. : Ran 1 YCs before OC#301. : Ran 1 YCs before OC#302. : Ran 1 YCs before OC#303. : Ran 2 YCs since last OC. YC Promotion : Last YC successfully promoted all objects Heap : 0x00C00000 - 0x60C00000 (Size: 1536 MB) Compaction : 0x0CC00008 - 0x12C00000 (Current compaction type: internal) Stopping PointBase server... PointBase server stopped. [/code]
JS的: Cannot read property 'value' of undefined
部分html代码 ``` <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>随机数据生成</title> <link rel="stylesheet" type="text/css" href="css/index.css"> <script type="text/javascript" src="js/index.js"></script> </head> <body> <textarea rows="1" cols="1" name="date" class="texta" value=""></textarea> <script type="text/javascript"> var texta = document.getElementsByTagName("textarea")[0]; start.onclick = function(){ IntegerDate(peoVal,exceVal,qualVal,unqualVal,texta); } ``` 外部JS代码 ``` function IntegerDate(sNum,exce,good,qual,unqual,elements){//注释:总人数,优秀,良好,合格,不合格,要添加的元素 for(var i = 0;i < sNum;i++){ if(exce){ elements.getAttribute("value") += randomInt(4800,5040) + '\n'; } if(good){ elements.getAttribute("value") += randomInt(4300,4550) + '\n'; } if(qual){ elements.getAttribute("value") += randomInt(3100,4180) + '\n'; } if(unqual){ elements.getAttribute("value") += randomInt(2300,2940) + '\n'; } } } ``` 错误图片提示 ![图片说明](https://img-ask.csdn.net/upload/201712/06/1512574468_688310.png)
delphi 7 执行有返回参数的oracle存储过程
存储过程名 Pro_zxc 参数 : 卡号 ,编号, 数量,金额,时间,错误代码(0/1),返回消息 ``` exce Pro_zxc('301007087','001','1','1000',to_date('2018-03-17','yyyy-mm-dd'),:Result_Code,:Result_Code) ``` 我用 ``` OrclSql := 'exce Pro_zxc(' + QuotedStr(edtID.Text) + ',' + QuotedStr(edtNum.Text) + ',''' + IntToStr(CNum) +''',' + QuotedStr(HcDBLabelEdit3.Text) + ',' + 'to_date('+QuotedStr(dateSigContractDate.Text)+','+'''yyyy-mm-dd'')'+',:Result_Code,:Result_Code)'; WriteLog(OrclSql); UniQueryMoney.Close; UniQueryMoney.SQL.Clear; UniQueryMoney.SQL.Add(OrclSql); WriteLog('UniQueryMoney.SQL.Add(OrclSql);'); UniQueryMoney.Open; //报错 ora-00900 invalid sql statement WriteLog('UniQueryMoney.Open;'); Result_Num := UniQueryMoney.ParamByName('Result_Code').AsString; WriteLog('Result_Num = '+Result_Num); Result_Msg := UniQueryMoney.ParamByName('Result_Msg').AsString; WriteLog('Result_Msg = '+Result_Msg); ``` 这样报错,有没有大佬能够教导一下,这个存储过程我delphi7该怎样执行
求助各位大神LIstfragment中,分线程获取数据后刷新界面崩溃,用分线程加载数据后
如题:代码如下,要在viewpager中的一个fragment中加载一个listview,用分线程加载数据后,handleMessage给成员变量的集合赋值后,notify,会直接崩溃 /** * 报警图片 */ public class AlarmPhotoFragment extends ListFragment { private int mType = 0; private ListView mListView; public static int type = 0; private String urlStr; private LayoutInflater mInflater; private List<String> cids = new ArrayList<String>(); List<AlarmPhotoBean.Timestamps.ListEntity> lists = new ArrayList<AlarmPhotoBean.Timestamps.ListEntity>(); LocalRecordAlarmAdapter mLocalRecordAlarmAdapter; private AlarmPhotoBean alarmPhotoBeans = new AlarmPhotoBean(); int page = 1; private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 9: String json = (String) msg.obj; Gson gson = new Gson(); AlarmPhotoBean alarmPhotoBean = gson.fromJson(json, AlarmPhotoBean.class); CLog.v("alarmPhotoBean: " + alarmPhotoBean); if (!alarmPhotoBean.getBase_urls().isEmpty() && !alarmPhotoBean.getTimestamps().isEmpty()) { List<AlarmPhotoBean.Timestamps> timestamps = alarmPhotoBean.getTimestamps(); List<AlarmPhotoBean.Timestamps.ListEntity> list = timestamps.get(0).getList(); CLog.v("alarmPhotoBeans:" + alarmPhotoBean); lists.addAll(list); alarmPhotoBeans = alarmPhotoBean; com.lingyang.sdk.util.CLog.v("lists: " + lists); notifyDataSetChanged(); } break; } } }; @Override public void onAttach(Activity activity) { super.onAttach(activity); } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mType = getArguments().getInt("type", 0); } @Override public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); View view = inflater.inflate(R.layout.fragment_localrecord_alarm, container, false); initData(); mInflater = inflater; page = 1; return view; } @Override public void onActivityCreated(@Nullable Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); mListView = getListView(); if(mLocalRecordAlarmAdapter == null) { mLocalRecordAlarmAdapter = new LocalRecordAlarmAdapter(getActivity(), lists, alarmPhotoBeans); } else { setListAdapter(mLocalRecordAlarmAdapter); mLocalRecordAlarmAdapter.notifyDataSetChanged(); } } private void notifyDataSetChanged() { if (mLocalRecordAlarmAdapter == null) { mLocalRecordAlarmAdapter = new LocalRecordAlarmAdapter(getActivity(), lists, alarmPhotoBeans); } CLog.v("notifyDataSetChanged()"); setListAdapter(mLocalRecordAlarmAdapter); } /** * 初始化集合信息 */ private void initData() { Date dNow = new Date(); //当前时间 long time = dNow.getTime(); long begoreTime = TimeUtils.getBeforeTimeStamp(time); getTimeStamp(begoreTime, time); } public void getTimeStamp(long start, long end) { String userToken; String accessToken; List<CameraResponse.MyCameras.Camera> mListCamera = AttentionFragment.mListCamera; // for (final CameraResponse.MyCameras.Camera cameras : mListCamera) { final CameraResponse.MyCameras.Camera cameras = mListCamera.get(0); com.lingyang.sdk.util.CLog.v("cid: " + cameras.cid); userToken = CloudOpenAPI.getInstance().getUserToken(); accessToken = CloudOpenAPI.getInstance().getDeviceToken(cameras.cid); urlStr = AlarmHttpUtils.TOTIMESTAMP + cameras.cid + "/snapshots?from=" + start / 1000 + "&type=3" + "&to=" + end / 1000 + "&user_token=" + userToken + "&access_token=" + accessToken; cids.add(cameras.cid); Object obj = new Object(); synchronized (obj) { new Thread() { public void run() { try { URL url = null; HttpURLConnection conn = null; InputStream is = null; ByteArrayOutputStream baos = null; try { url = new URL(urlStr); conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(AlarmHttpUtils.TIMEOUT_IN_MILLIONS); conn.setConnectTimeout(AlarmHttpUtils.TIMEOUT_IN_MILLIONS); conn.setRequestMethod("GET"); conn.setRequestProperty("accept", "*/*"); conn.setRequestProperty("connection", "Keep-Alive"); com.lingyang.sdk.util.CLog.v("conn.getResponseCode(): " + conn.getResponseCode()); if (conn.getResponseCode() == 200) { is = conn.getInputStream(); baos = new ByteArrayOutputStream(); int len = -1; byte[] buf = new byte[128]; while ((len = is.read(buf)) != -1) { baos.write(buf, 0, len); } baos.flush(); baos.toString(); Message message = new Message(); message.what = 9; message.obj = baos.toString(); handler.sendMessage(message); } else { throw new RuntimeException(" responseCode is not 200 ... "); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (is != null) is.close(); } catch (IOException e) { } try { if (baos != null) baos.close(); } catch (IOException e) { } conn.disconnect(); } } catch (Exception e) { e.printStackTrace(); } } }.start(); } // } } @Override public void onViewCreated(View view, Bundle savedInstanceState) { super.onViewCreated(view, savedInstanceState); } @Override public void onResume() { super.onResume(); } }
jboss-eap的发布项目的问题,报了很多错误,不知道是什么原因。
{"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed :" => {"Operation step-2" => {"WFLYCTL0080: Failed services" => {"jboss.module.s ervice.\"deployment.itoo-basic-teacher-ear.ear.itoo-tool.jar\".main" => "org.jbo ss.msc.service.StartException in service jboss.module.service.\"deployment.itoo- basic-teacher-ear.ear.itoo-tool.jar\".main: WFLYSRV0179: Failed to load module: deployment.itoo-basic-teacher-ear.ear.itoo-tool.jar:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-base.jar\".ma in" => "org.jboss.msc.service.StartException in service jboss.module.service.\"d eployment.itoo-basic-teacher-ear.ear.itoo-base.jar\".main: WFLYSRV0179: Failed t o load module: deployment.itoo-basic-teacher-ear.ear.itoo-base.jar:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-teacher -core.jar\".main" => "org.jboss.msc.service.StartException in service jboss.modu le.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-teacher-core.jar\" .main: WFLYSRV0179: Failed to load module: deployment.itoo-basic-teacher-ear.ear .itoo-basic-teacher-core.jar:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear\".main" => "org.jb oss.msc.service.StartException in service jboss.module.service.\"deployment.itoo -basic-teacher-ear.ear\".main: WFLYSRV0179: Failed to load module: deployment.it oo-basic-teacher-ear.ear:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-excelV2.0-api .jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.se rvice.\"deployment.itoo-basic-teacher-ear.ear.itoo-excelV2.0-api.jar\".main: WFL YSRV0179: Failed to load module: deployment.itoo-basic-teacher-ear.ear.itoo-exce lV2.0-api.jar:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-cloud-api.jar \".main" => "org.jboss.msc.service.StartException in service jboss.module.servic e.\"deployment.itoo-basic-teacher-ear.ear.itoo-cloud-api.jar\".main: WFLYSRV0179 : Failed to load module: deployment.itoo-basic-teacher-ear.ear.itoo-cloud-api.ja r:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-teacher -web.war\".main" => "org.jboss.msc.service.StartException in service jboss.modul e.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-teacher-web.war\".m ain: WFLYSRV0179: Failed to load module: deployment.itoo-basic-teacher-ear.ear.i too-basic-teacher-web.war:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-api.jar \".main" => "org.jboss.msc.service.StartException in service jboss.module.servic e.\"deployment.itoo-basic-teacher-ear.ear.itoo-basic-api.jar\".main: WFLYSRV0179 : Failed to load module: deployment.itoo-basic-teacher-ear.ear.itoo-basic-api.ja r:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main", "jboss.module.service.\"deployment.itoo-basic-teacher-ear.ear.itoo-authority-api .jar\".main" => "org.jboss.msc.service.StartException in service jboss.module.se rvice.\"deployment.itoo-basic-teacher-ear.ear.itoo-authority-api.jar\".main: WFL YSRV0179: Failed to load module: deployment.itoo-basic-teacher-ear.ear.itoo-auth ority-api.jar:main Caused by: org.jboss.modules.ModuleNotFoundException: org.jboss.netty:main"} }}}
130 个相见恨晚的超实用网站,一次性分享出来
相见恨晚的超实用网站 持续更新中。。。
字节跳动视频编解码面经
三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时想着能进去就不错了,管他哪个岗呢,就同意了面试...
win10系统安装教程(U盘PE+UEFI安装)
一、准备工作 u盘,电脑一台,win10原版镜像(msdn官网) 二、下载wepe工具箱 极力推荐微pe(微pe官方下载) 下载64位的win10 pe,使用工具箱制作启动U盘打开软件, 选择安装到U盘(按照操作无需更改) 三、重启进入pe系统 1、关机后,将U盘插入电脑 2、按下电源后,按住F12进入启动项选择(技嘉主板是F12) 选择需要启...
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
Python——画一棵漂亮的樱花树(不同种樱花+玫瑰+圣诞树喔)
最近翻到一篇知乎,上面有不少用Python(大多是turtle库)绘制的树图,感觉很漂亮,我整理了一下,挑了一些我觉得不错的代码分享给大家(这些我都测试过,确实可以生成) one 樱花树 动态生成樱花 效果图(这个是动态的): 实现代码 import turtle as T import random import time # 画樱花的躯干(60,t) def Tree(branch, ...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小人工智障。 思路可以运用在不同地方,主要介绍的是思路。
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
Java描述设计模式(19):模板方法模式
本文源码:GitHub·点这里 || GitEE·点这里 一、生活场景 通常一款互联网应用的开发流程如下:业务需求,规划产品,程序开发,测试交付。现在基于模板方法模式进行该过程描述。 public class C01_InScene { public static void main(String[] args) { DevelopApp developApp = n...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n...
第三个java程序(表白小卡片)
前言: &nbsp;向女神表白啦,作为一个程序员,当然也有爱情啦。只不过,虽然前面两个程序都只是学习了基础的语法结构和向量哈希表。这里涉及的是Swing,awt图形用户界面和一点文件输入输出流的知识。 &nbsp; 表白代码如下: 另附:里面的音乐和图片可以放在一个自己创建的包里面,也可以放在src里面,或者使用绝对路径。至于布局,我自己的使用的是简单的排班,简单的继承。后面的程序会慢慢实现。 ...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
化繁为简 - 腾讯计费高一致TDXA的实践之路
导语:腾讯计费是孵化于支撑腾讯内部业务千亿级营收的互联网计费平台,在如此庞大的业务体量下,腾讯计费要支撑业务的快速增长,同时还要保证每笔交易不错账。采用最终一致性或离线补...
Linux网络服务-----实验---PXE和Kickstart的无人值守装机
目录 一.PXE的原理 二.kickstart的原理 三.PXE与kickstart的结合使用自动装机 一.PXE的原理 PXE(preboot execute environment,预启动执行环境)是由Intel公司开发的最新技术,工作于Client/Server的网络模式,支持工作站通过网络从远端服务器下载映像,并由支持通过网络启动操作系统,再启动过程中,终端要求服务器分配IP地址...
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观...
A*搜索算法概述
编者按:本文作者奇舞团前端开发工程师魏川凯。A*搜索算法(A-star search algorithm)是一种常见且应用广泛的图搜索和寻径算法。A*搜索算法是通过使用启...
程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
从顶级黑客到上市公司老板
一看标题,很多老读者就知道我在写什么了。今天Ucloud成功上市,季昕华成为我所熟悉的朋友里又双叒叕一个成功上市的案例。我们认识大概是十五年多吧,如果没记错,第一次见面应该是2004年,...
蓝桥杯知识点汇总:基础知识和常用算法
文章目录基础语法部分:算法竞赛常用API:算法部分数据结构部分 此系列包含蓝桥杯绝大部分所考察的知识点,以及真题题解~ 基础语法部分: 备战蓝桥杯java(一):一般输入输出 和 快速输入输(BufferedReader&amp;BufferedWrite) 备战蓝桥杯java(二):java编程规范和常用数据类型 备战蓝桥杯java(三):常用功能符以及循环结构和分支结构 备战蓝桥杯java(四...
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东...
破14亿,Python分析我国存在哪些人口危机!
一、背景 二、爬取数据 三、数据分析 1、总人口 2、男女人口比例 3、人口城镇化 4、人口增长率 5、人口老化(抚养比) 6、各省人口 7、世界人口 四、遇到的问题 遇到的问题 1、数据分页,需要获取从1949-2018年数据,观察到有近20年参数:LAST20,由此推测获取近70年的参数可设置为:LAST70 2、2019年数据没有放上去,可以手动添加上去 3、将数据进行 行列转换 4、列名...
强烈推荐10本程序员在家读的书
很遗憾,这个春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终将会...
Linux自学篇——linux命令英文全称及解释
man: Manual 意思是手册,可以用这个命令查询其他命令的用法。 pwd:Print working directory 意思是密码。 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mkdir:Make directory ...
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。
疫情数据接口api
返回json示例 { "errcode":0,//0标识接口正常 "data":{ "date":"2020-01-30 07:47:23",//实时更新时间 "diagnosed":7736,//确诊人数 "suspect":12167,//疑是病例人数 "death":170,//死亡人数 "cur...
智力题(程序员面试经典)
NO.1  有20瓶药丸,其中19瓶装有1克/粒的药丸,余下一瓶装有1.1克/粒的药丸。给你一台称重精准的天平,怎么找出比较重的那瓶药丸?天平只能用一次。 解法 有时候,严格的限制条件有可能反倒是解题的线索。在这个问题中,限制条件是天平只能用一次。 因为天平只能用一次,我们也得以知道一个有趣的事实:一次必须同时称很多药丸,其实更准确地说,是必须从19瓶拿出药丸进行称重。否则,如果跳过两瓶或更多瓶药...
疫情防控,开发者集结出战!
作者 | 屠敏出品 | CSDN(ID:CSDNnews)2020 年伊始,病毒肆虐,人心惶惶。截止北京时间 1 月 31 日 15 时 30 分,全国确诊新型冠状病毒肺炎的数字已达到了...
相关热词 c# 为空 判断 委托 c#记事本颜色 c# 系统默认声音 js中调用c#方法参数 c#引入dll文件报错 c#根据名称实例化 c#从邮件服务器获取邮件 c# 保存文件夹 c#代码打包引用 c# 压缩效率
立即提问