怎样通过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实例?? 那么我改怎么办?在线等,高手帮忙!
求mfc 读写Excel的类,可以支持wps表
之前的操作Excel总是出现wps问题或者创建exce服务器失败,所以想求一个强大点的excel操作类
.NET 基于Office excel 转 word 怎么实现,求大神指教
exce中有表格,合并单元格 等信息,Excel转word。 求大神指教
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"} }}}
在中国程序员是青春饭吗?
今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...
《MySQL 性能优化》之理解 MySQL 体系结构
本文介绍 MySQL 的体系结构,包括物理结构、逻辑结构以及插件式存储引擎。
程序员请照顾好自己,周末病魔差点一套带走我。
程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。
复习一周,京东+百度一面,不小心都拿了Offer
京东和百度一面都问了啥,面试官百般刁难,可惜我全会。
Java 14 都快来了,为什么还有这么多人固守Java 8?
从Java 9开始,Java版本的发布就让人眼花缭乱了。每隔6个月,都会冒出一个新版本出来,Java 10 , Java 11, Java 12, Java 13, 到2020年3月份,...
达摩院十大科技趋势发布:2020 非同小可!
【CSDN编者按】1月2日,阿里巴巴发布《达摩院2020十大科技趋势》,十大科技趋势分别是:人工智能从感知智能向认知智能演进;计算存储一体化突破AI算力瓶颈;工业互联网的超融合;机器间大规模协作成为可能;模块化降低芯片设计门槛;规模化生产级区块链应用将走入大众;量子计算进入攻坚期;新材料推动半导体器件革新;保护数据隐私的AI技术将加速落地;云成为IT技术创新的中心 。 新的画卷,正在徐徐展开。...
轻松搭建基于 SpringBoot + Vue 的 Web 商城应用
首先介绍下在本文出现的几个比较重要的概念: 函数计算(Function Compute): 函数计算是一个事件驱动的服务,通过函数计算,用户无需管理服务器等运行情况,只需编写代码并上传。函数计算准备计算资源,并以弹性伸缩的方式运行用户代码,而用户只需根据实际代码运行所消耗的资源进行付费。Fun: Fun 是一个用于支持 Serverless 应用部署的工具,能帮助您便捷地管理函数计算、API ...
讲真,这两个IDE插件,可以让你写出质量杠杠的代码
周末躺在床上看《拯救大兵瑞恩》 周末在闲逛的时候,发现了两个优秀的 IDE 插件,据说可以提高代码的质量,我就安装了一下,试了试以后发现,确实很不错,就推荐给大家。 01、Alibaba Java 代码规范插件 《阿里巴巴 Java 开发手册》,相信大家都不会感到陌生,其 IDEA 插件的下载次数据说达到了 80 万次,我今天又贡献了一次。嘿嘿。 该项目的插件地址: https://github....
Python+OpenCV实时图像处理
目录 1、导入库文件 2、设计GUI 3、调用摄像头 4、实时图像处理 4.1、阈值二值化 4.2、边缘检测 4.3、轮廓检测 4.4、高斯滤波 4.5、色彩转换 4.6、调节对比度 5、退出系统 初学OpenCV图像处理的小伙伴肯定对什么高斯函数、滤波处理、阈值二值化等特性非常头疼,这里给各位分享一个小项目,可通过摄像头实时动态查看各类图像处理的特点,也可对各位调参、测试...
2020年一线城市程序员工资大调查
人才需求 一线城市共发布岗位38115个,招聘120827人。 其中 beijing 22805 guangzhou 25081 shanghai 39614 shenzhen 33327 工资分布 2020年中国一线城市程序员的平均工资为16285元,工资中位数为14583元,其中95%的人的工资位于5000到20000元之间。 和往年数据比较: yea...
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢? 我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果: 搜索一下:产品经理猝死,只有400万条的搜索结果,从搜索结果数量上来看,程序员猝死的搜索结果就比产品经理猝死的搜索结果高了一倍,而且从下图可以看到,首页里面的五条搜索结果,其实只有两条才是符合条件。 所以程序员猝死的概率真的比产品经理大,并不是错...
害怕面试被问HashMap?这一篇就搞定了!
声明:本文以jdk1.8为主! 搞定HashMap 作为一个Java从业者,面试的时候肯定会被问到过HashMap,因为对于HashMap来说,可以说是Java集合中的精髓了,如果你觉得自己对它掌握的还不够好,我想今天这篇文章会非常适合你,至少,看了今天这篇文章,以后不怕面试被问HashMap了 其实在我学习HashMap的过程中,我个人觉得HashMap还是挺复杂的,如果真的想把它搞得明明白...
毕业5年,我问遍了身边的大佬,总结了他们的学习方法
我问了身边10个大佬,总结了他们的学习方法,原来成功都是有迹可循的。
python爬取百部电影数据,我分析出了一个残酷的真相
2019年就这么匆匆过去了,就在前几天国家电影局发布了2019年中国电影市场数据,数据显示去年总票房为642.66亿元,同比增长5.4%;国产电影总票房411.75亿元,同比增长8.65%,市场占比 64.07%;城市院线观影人次17.27亿,同比增长0.64%。 看上去似乎是一片大好对不对?不过作为一名严谨求实的数据分析师,我从官方数据中看出了一点端倪:国产票房增幅都已经高达8.65%了,为什...
推荐10个堪称神器的学习网站
每天都会收到很多读者的私信,问我:“二哥,有什么推荐的学习网站吗?最近很浮躁,手头的一些网站都看烦了,想看看二哥这里有什么新鲜货。” 今天一早做了个恶梦,梦到被老板辞退了。虽然说在我们公司,只有我辞退老板的份,没有老板辞退我这一说,但是还是被吓得 4 点多都起来了。(主要是因为我掌握着公司所有的核心源码,哈哈哈) 既然 4 点多起来,就得好好利用起来。于是我就挑选了 10 个堪称神器的学习网站,推...
这些软件太强了,Windows必装!尤其程序员!
Windows可谓是大多数人的生产力工具,集娱乐办公于一体,虽然在程序员这个群体中都说苹果是信仰,但是大部分不都是从Windows过来的,而且现在依然有很多的程序员用Windows。 所以,今天我就把我私藏的Windows必装的软件分享给大家,如果有一个你没有用过甚至没有听过,那你就赚了????,这可都是提升你幸福感的高效率生产力工具哦! 走起!???? NO、1 ScreenToGif 屏幕,摄像头和白板...
阿里面试,面试官没想到一个ArrayList,我都能跟他扯半小时
我是真的没想到,面试官会这样问我ArrayList。
曾经优秀的人,怎么就突然不优秀了。
职场上有很多辛酸事,很多合伙人出局的故事,很多技术骨干被裁员的故事。说来模板都类似,曾经是名校毕业,曾经是优秀员工,曾经被领导表扬,曾经业绩突出,然而突然有一天,因为种种原因,被裁员了,...
大学四年因为知道了这32个网站,我成了别人眼中的大神!
依稀记得,毕业那天,我们导员发给我毕业证的时候对我说“你可是咱们系的风云人物啊”,哎呀,别提当时多开心啦????,嗯,我们导员是所有导员中最帅的一个,真的???? 不过,导员说的是实话,很多人都叫我大神的,为啥,因为我知道这32个网站啊,你说强不强????,这次是绝对的干货,看好啦,走起来! PS:每个网站都是学计算机混互联网必须知道的,真的牛杯,我就不过多介绍了,大家自行探索,觉得没用的,尽管留言吐槽吧???? 社...
良心推荐,我珍藏的一些Chrome插件
上次搬家的时候,发了一个朋友圈,附带的照片中不小心暴露了自己的 Chrome 浏览器插件之多,于是就有小伙伴评论说分享一下我觉得还不错的浏览器插件。 我下面就把我日常工作和学习中经常用到的一些 Chrome 浏览器插件分享给大家,随便一个都能提高你的“生活品质”和工作效率。 Markdown Here Markdown Here 可以让你更愉快的写邮件,由于支持 Markdown 直接转电子邮...
看完这篇HTTP,跟面试官扯皮就没问题了
我是一名程序员,我的主要编程语言是 Java,我更是一名 Web 开发人员,所以我必须要了解 HTTP,所以本篇文章就来带你从 HTTP 入门到进阶,看完让你有一种恍然大悟、醍醐灌顶的感觉。 最初在有网络之前,我们的电脑都是单机的,单机系统是孤立的,我还记得 05 年前那会儿家里有个电脑,想打电脑游戏还得两个人在一个电脑上玩儿,及其不方便。我就想为什么家里人不让上网,我的同学 xxx 家里有网,每...
2020 年,大火的 Python 和 JavaScript 是否会被取而代之?
Python 和 JavaScript 是目前最火的两大编程语言,但是2020 年,什么编程语言将会取而代之呢? 作者 |Richard Kenneth Eng 译者 |明明如月,责编 | 郭芮 出品 | CSDN(ID:CSDNnews) 以下为译文: Python 和 JavaScript 是目前最火的两大编程语言。然而,他们不可能永远屹立不倒。最终,必将像其他编程语言一...
史上最全的IDEA快捷键总结
现在Idea成了主流开发工具,这篇博客对其使用的快捷键做了总结,希望对大家的开发工作有所帮助。
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
这种新手都不会范的错,居然被一个工作好几年的小伙子写出来,差点被当场开除了。
谁是华为扫地僧?
是的,华为也有扫地僧!2020年2月11-12日,“养在深闺人不知”的华为2012实验室扫地僧们,将在华为开发者大会2020(Cloud)上,和大家见面。到时,你可以和扫地僧们,吃一个洋...
Idea 中最常用的10款插件(提高开发效率),一定要学会使用!
学习使用一些插件,可以提高开发效率。对于我们开发人员很有帮助。这篇博客介绍了开发中使用的插件。
AI 没让人类失业,搞 AI 的人先失业了
最近和几个 AI 领域的大佬闲聊 根据他们讲的消息和段子 改编出下面这个故事 如有雷同 都是巧合 1. 老王创业失败,被限制高消费 “这里写我跑路的消息实在太夸张了。” 王葱葱哼笑一下,把消息分享给群里。 阿杰也看了消息,笑了笑。在座几位也都笑了。 王葱葱是个有名的人物,21岁那年以全额奖学金进入 KMU 攻读人工智能博士,累计发表论文 40 余篇,个人技术博客更是成为深度学习领域内风向标。 ...
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆每天早上8:30推送 作者|Mr.K 编辑| Emma 来源|技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯...
作为一名大学生,如何在B站上快乐的学习?
B站是个宝,谁用谁知道???? 作为一名大学生,你必须掌握的一项能力就是自学能力,很多看起来很牛X的人,你可以了解下,人家私底下一定是花大量的时间自学的,你可能会说,我也想学习啊,可是嘞,该学习啥嘞,不怕告诉你,互联网时代,最不缺的就是学习资源,最宝贵的是啥? 你可能会说是时间,不,不是时间,而是你的注意力,懂了吧! 那么,你说学习资源多,我咋不知道,那今天我就告诉你一个你必须知道的学习的地方,人称...
那些年,我们信了课本里的那些鬼话
教材永远都是有错误的,从小学到大学,我们不断的学习了很多错误知识。 斑羚飞渡 在我们学习的很多小学课文里,有很多是错误文章,或者说是假课文。像《斑羚飞渡》: 随着镰刀头羊的那声吼叫,整个斑羚群迅速分成两拨,老年斑羚为一拨,年轻斑羚为一拨。 就在这时,我看见,从那拨老斑羚里走出一只公斑羚来。公斑羚朝那拨年轻斑羚示意性地咩了一声,一只半大的斑羚应声走了出来。一老一少走到伤心崖,后退了几步,突...
一个程序在计算机中是如何运行的?超级干货!!!
强烈声明:本文很干,请自备茶水!???? 开门见山,咱不说废话! 你有没有想过,你写的程序,是如何在计算机中运行的吗?比如我们搞Java的,肯定写过这段代码 public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } ...
立即提问