ava.sql.SQLException: ORA-01017: 用户名/口令无效; 登录被拒绝

ava.sql.SQLException: ORA-01017: 用户名/口令无效; 登录被拒绝
cmd输入sqlplus,是可以登陆的,但是在eclipse,jsp使用jdbc连接oracle数据库时,就报错了,同样的用户名和密码.....不知道原因出在哪里。
图片说明图片说明

3个回答

实例名是对的么 orcl sqlplus 密码后面加上@orcl试试

@localhost:1521/orcl

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
java.sql.SQLException: ORA-28040: 没有匹配的验证协议

2019-12-14 16:54:51,024 666517 [bio-8888-exec-7] DEBUG .web.servlet.DispatcherServlet - DispatcherServlet with name 'dispatcherServlet' processing GET request for [/travel_web/product/findAll1.do] 2019-12-14 16:54:51,024 666517 [bio-8888-exec-7] DEBUG n.RequestMappingHandlerMapping - Looking up handler method for path /product/findAll1.do 2019-12-14 16:54:51,024 666517 [bio-8888-exec-7] DEBUG n.RequestMappingHandlerMapping - Returning handler method [public java.util.List<com.tvl.domain.Product> com.tvl.web.controller.ProductController.findAll1()] 2019-12-14 16:54:51,024 666517 [bio-8888-exec-7] DEBUG ort.DefaultListableBeanFactory - Returning cached instance of singleton bean 'productController' 2019-12-14 16:54:51,024 666517 [bio-8888-exec-7] DEBUG .web.servlet.DispatcherServlet - Last-Modified value for [/travel_web/product/findAll1.do] is: -1 controller in ...... 2019-12-14 16:54:51,025 666518 [bio-8888-exec-7] DEBUG e.DataSourceTransactionManager - Creating new transaction with name [com.tvl.service.impl.ProductServiceImpl.findAll]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT; '' 2019-12-14 16:55:05,058 680551 [reate-685899154] ERROR aba.druid.pool.DruidDataSource - create connection error java.sql.SQLException: ORA-28040: 没有匹配的验证协议 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOsesskey(T4CTTIoauthenticate.java:288) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:357) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1375) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1844)

java.sql.SQLException: ORA-24335: 无法支持 1000 列以上 怎么解决??

java.sql.SQLException: ORA-24335: 无法支持 1000 列以上

Caused by: java.sql.SQLException: ORA-00911: 无效字符

if(stat){ sqlsb.append(" select * from ("); }else{ sqlsb.append("select count(*) from ("); } sqlsb.append("select bb.datetime datetime, sum(decode(bb.typevalue, '新入金', bb.inits, 0.0)) as inits1, " + " sum(decode(bb.typevalue, '还款本金', bb.inits, 0.0)) as inits2, " + " sum(decode(bb.typevalue, '赎回金额', bb.inits, 0.0)) as inits3, " + " sum(decode(bb.typevalue, '借款金额', bb.inits, 0.0)) as inits4, " + " sum(decode(bb.typevalue, '历史空闲资金', bb.inits, 0.0)) as inits5 from (select to_char(t.start_date, 'yyyy-MM-dd') datetime, " + " sum(t.amount) inits, '新入金' typevalue from p2p_investment_capitalinfo t where t.type = 02 " + " and t.status in (01, 02, 03) group by to_char(t.start_date, 'yyyy-MM-dd') " + " union all select to_char(t.create_date, 'yyyy-MM-dd') datetime, sum(t.split_capital) inits, " + " '还款本金' typevalue from clspuser.crf_p2p_capital_split_main t where t.capital_type = 1 " + " group by to_char(t.create_date, 'yyyy-MM-dd') union all select to_char(t.pay_date, 'yyyy-MM-dd') datetime," + " sum(t.amount) inits, '赎回金额' typevalue from p2p_investment_payinfodetail t where t.is_transfer is null" + " group by to_char(t.pay_date, 'yyyy-MM-dd') union all select to_char(t.match_date, 'yyyy-MM-dd') datetime," + " sum(t.amount) inits, '借款金额' typevalue from p2p_investment_capital_debt t where t.status != 06" + " and t.redempt_number is null group by to_char(t.match_date, 'yyyy-MM-dd') union all select to_char(t.start_date, 'yyyy-MM-dd') datetime," + " sum(t.amount - nvl(t.handled_amount, 0)) inits, '历史空闲资金' typevalue from p2p_investment_capitalinfo t where t.pri_number != 247478" + " and t.status in (01, 02) and t.type = 01 and t.investor_number != 165951 group by to_char(t.start_date, 'yyyy-MM-dd'))bb where 1=1" ); //创建时间段查询 if(null !=po.getStartAppDate()){ sqlsb.append(" and bb.datetime >= '"+po.getStartAppDate()+"'"); } if( null != po.getEndAppDate()) { sqlsb.append(" and bb.datetime <= '"+po.getEndAppDate()+"'"); } sqlsb.append(" group by bb.datetime order by bb.datetime desc);"); String sqlStr = this.getInternalAccountMoneyWarningsql(po,false); SQLQuery sq = this.getSession().createSQLQuery(sqlStr); 在oracle没有错 但是hibernate 执行sql出现Caused by: java.sql.SQLException: ORA-00911: 无效字符

java.sql.SQLException: ORA-01002: 读取违反顺序 大家帮我看看

[code="java"] public void insertImage(Image image) { Connection conn = null; Statement stat = null; ResultSet rs = null; OutputStream out = null; try { conn = DBManager.getConnection(); stat = conn.createStatement(); byte[] data = convertImage(image); String sql1 = "INSERT INTO PHOTO(ID,NAME,IMAGE) VALUES(1,'TEST',EMPTY_BLOB())"; stat.execute(sql1); String sql2 = "SELECT IMAGE FROM PHOTO WHERE ID=1 FOR UPDATE"; rs = stat.executeQuery(sql2); if(rs.next()) { BLOB blob = (BLOB)rs.getBlob("IMAGE"); out = blob.getBinaryOutputStream(); try { out.write(data,0,data.length); } catch(IOException e) { e.printStackTrace(); } } } catch(SQLException e) { e.printStackTrace(); } finally { try { if(out != null) out.close(); if(rs != null) rs.close(); if(stat != null) stat.close(); if(conn != null) conn.close(); } catch(SQLException e) { e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } } } [/code] 程序运行到 [code="java"]rs = stat.executeQuery(sql2);[/code] 就会抛出 [code="java"] java.sql.SQLException: ORA-01002: 读取违反顺序 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891) at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:1198) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2400) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672) at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:572) at com.computech.takepic.common.ImageDAO.insertImage(ImageDAO.java:39) at com.computech.takepic.common.TestJMF$1.actionPerformed(TestJMF.java:104) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3093) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1766) at java.awt.Component.dispatchEvent(Component.java:3803) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) [/code] 请大家帮我看下,谢谢。

Cause: java.sql.SQLException: ORA-06550: 第 1 行, 第 7 列:

在服务器上执行程序报如下错误: Error querying database. Cause: java.sql.SQLException: ORA-06550: 第 1 行, 第 7 列: PLS-00201: identifier 'IREVIEW.PROC_ECREDIT_INTEGRATION' must be declared 在开发环境执行IREVIEW.PROC_ECREDIT_INTEGRATION存储过程不会发生报错,那位哥哥知道什么原因?交兄弟一下,十分感谢

java.sql.SQLException: ORA-04098: 触发器无效且未通过重新验证

我创建触发器的语句: create or replace trigger TRIG_DAT_DD before insert on DAT_DD_TEMP for each row begin SELECT DAT_DD_SEQ.NEXTVAL INTO : NEW.ID FROM DUAL;end TRIG_DAT_DD; insert into select from 语句: insert into DAT_DD_TEMP (BNK_NUM,SUBJT_NUM,ACCT_NUM,CUST_NM,CUST_NUM,CRNCY_CD,ENDING_BAL,ACTL_RT,ACCRUE_BASIS,ACCRUE_FREQ,CRDT_FREQ,PMT_ARNG,ACCT_TYP) select so.ID as BNK_NUM,vb.ITM_NUM as SUBJT_NUM,vb.CUST_ACCT_NUMBER2 as ACCT_NUM,vb.CUST_NM as CUST_NM,vb.CUST_NUM as CUST_NUM,bc.ID as CRNCY_CD,vb.ACCT_BAL_AMT as ENDING_BAL, NVL(bpb.BAS_RT,0)+NVL(bpf.FLT_PCT,0) as ACTL_RT,'30/360' as ACCRUE_BASIS,'Q20' as ACCRUE_FREQ,'Q20' as CRDT_FREQ, decode(vb.ITM_NUM,'205107','B','205108','C','A') as PMT_ARNG ,'L' as ACCT_TYP from VIRGO.VIRGO_BAS_DEMD_DEP_DTL vb left join ALMS.SYS_ORG so on vb.INSTN_NUM = so.ORG_CD left join ALMS.BAS_CRNCY bc on vb.CRNCY_CD = bc.NMRC_CRNCY_CD left join VIRGO.V_BAS_PUB_DEP_BAS_RT_INFO bpb on vb.ITM_NUM = bpb.ITM_NUM and vb.CRNCY_CD = bpb.CRNCY_CD left join VIRGO.V_BAS_PUB_DEP_FLT_RT_INFO bpf on vb.ITM_NUM = bpf.ITM_NUM and vb.CRNCY_CD = bpf.CRNCY_CD 使用JDBC执行这两个语句就报这个错 但是我在plsql里 先创建在执行就没有问题求解答 java.sql.SQLException: ORA-04098: 触发器 'ALMS.TRIG_DAT_DD' 无效且未通过重新验证 报这个错

insert语句报java.sql.SQLException: ORA-00928

java.sql.SQLException: ORA-00928: 缺失 SELECT 关键字,请问哪里出错了?? <insert id="addUser"> insert into app_user_ayth <dynamic open="(" close=")"> <isNotNull prepend="," property="userId"> userId </isNotNull> <isNotNull prepend="," property="userName"> userName </isNotNull> <isNotNull prepend="," property="deptementId"> deptementId </isNotNull> <isNotNull prepend="," property="oainfo"> oainfo </isNotNull> <isNotNull prepend="," property="power"> power </isNotNull> <isNotNull prepend="," property="depar"> depar </isNotNull> </dynamic> values <dynamic open="(" close=")"> <isNotNull prepend="," property="userId"> #userId:VARCHAR# </isNotNull> <isNotNull prepend="," property="userName"> #userName:VARCHAR# </isNotNull> <isNotNull prepend="," property="deptementId"> #deptementId:VARCHAR# </isNotNull> <isNotNull prepend="," property="oainfo"> #oainfo:VARCHAR# </isNotNull> <isNotNull prepend="," property="power"> #power:VARCHAR# </isNotNull> <isNotNull prepend="," property="depar"> #depar:VARCHAR# </isNotNull> ) </dynamic> </insert>

java.sql.SQLException: ORA-00936: 缺失表达式

sql语句可以在sqlserver运行,但在mybatis中报错。有碰到这种情况的大神吗? ![图片说明](https://img-ask.csdn.net/upload/201711/02/1509621626_473198.png) ![图片说明](https://img-ask.csdn.net/upload/201711/02/1509621644_171619.png) mybatis文件 <select id="findByTemperature" parameterType="Map" resultType="Map"> SELECT ROUND(AVG(${id}),2) e,CONVERT(date,time,110) time FROM( SELECT top 100 percent ${id} ,time FROM dcurrent WHERE time &lt;= CONVERT(date,time-14,110) ORDER BY time )s group by CONVERT(date,s.time,110) order by CONVERT(date,s.time,110) </select>

SQLException: ORA-29861: 域索引标记为 LOADING/FAILED/UNUSABLE

CLOB clob = CLOB.createTemporary(connection, true,CLOB.DURATION_SESSION); clob.putString(1, qyzb);//qyzb是字符串 pstmt = connection.prepareStatement(“insert into KC_CKQ_CKQSP_COORD(CASE_CODE,AREA_CODE,ITEM_CODE,COORDINATE,STATUS) values(?,?,?,?,?)”); pstmt.setString(1, caseCode); pstmt.setString(2, areaCode); pstmt.setString(3, itemCode); pstmt.setClob(4, clob); pstmt.setString(5, status); pstmt.executeUpdate();//执行此处时报错 java.sql.SQLException: ORA-29861: 域索引标记为 LOADING/FAILED/UNUSABLE at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) 大概是因为clob类型的原因吧,能改为使用setString()吗

Hibernate JPA的异常java.sql.SQLException: ORA-00932: 数据类型不一致: 应为 TIMESTAMP, 但却获得 BINARY

使用的springboot,oracle数据库,查询的时候组装如下 ``` //Entity对应的字段如下 @CreatedDate @ApiModelProperty(value = "创建时间") private Date createTime; ``` ![图片说明](https://img-ask.csdn.net/upload/202004/25/1587815358_927072.png) ![图片说明](https://img-ask.csdn.net/upload/202004/26/1587887430_583910.png) 也试过between and 也是不行 在执行截图第40行的时候就报错了,还没有查数据库呢 后来还是自己写sql,字符串拼接的方式才查询的,但是和代码耦合比较高,还是想请教一下这个问题是哪里的问题?如何解决? 也可以直接帮我调试一下,先谢谢各位大神 具体报错 ![图片说明](https://img-ask.csdn.net/upload/202004/26/1587887243_414210.png)

java.sql.SQLException: ORA-01460: 转换请求无法实施或不合理 异常

package jdbc_day3; import java.io.File; import java.io.FileInputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; public class SavePic { static Connection conn = null; static PreparedStatement Pstmt = null; public static void main(String[] args) { insertPic(); } public static void insertPic(){ String driver = "oracle.jdbc.driver.OracleDriver"; String url = "java:oracle:thin:@localhost:1521:orcl"; String sql = "insert into stu_lu(id, name, photo) values (myseq.nextval,?,?)"; try { Class.forName(driver); conn = DriverManager.getConnection(url,"system","0000"); Pstmt = conn.prepareStatement(sql); File f = new File("mykfc.jpg"); FileInputStream fis = new FileInputStream(f); Pstmt.setString(1, "peter"); Pstmt.setBinaryStream(2, fis, (int)f.length()); int n = Pstmt.executeUpdate(); System.out.println(n+"条记录被更新"); } catch (SQLException e) { e.printStackTrace(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (Exception e) { e.printStackTrace(); } finally { try { conn.close(); } catch (SQLException e) { e.printStackTrace(); } } } }

使用eclipse连接数据库提示ORA-01017: 用户名/口令无效; 登录被拒绝

用oracle SQL Developer连接就没问题 账号密码没错,怎么办,,,

SSM 查询 异常 java.sql.SQLTimeoutException: ORA-01013: 用户请求取消当前的操作

SSM 框架中,进行单表 SELECT 分页查询,每页 10 条,分页语句采用 between and,查询到 3000 页左右或大于 3000 页,立刻报异常 “java.sql.SQLTimeoutException: ORA-01013: 用户请求取消当前的操作。”并再次查询第一页或靠前任意一页均报相同异常,需要重启服务才能再次查询,并同样在查询到 3000 页左右或大于 3000 页再次出现相同问题。 所查表为 ORACLE,包含 三百万数据,没有使用事物,也没有被锁定,服务超时设置为 0 、300000、不设置均无效。SQL 语句 在sqlplus、navicat、数据库服务器均正常运行。 语句为: SELECT nornal.* FROM( SELECT ..., row_number() over (ORDER BY normal.字段 DESC) rn FROM NORMAL normal ) nornal WHERE rn BETWEEN 1 AND 10 请问该如何解决?

java.sql.SQLException: ORA-01006: 绑定变量不存在

错误显示 at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:677) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2371) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:387) at cn.ntt.Dao.InfoDao.searchInfo(InfoDao.java:91) at cn.ntt.servlet.InfoServlet.doPost(InfoServlet.java:96) at cn.ntt.servlet.InfoServlet.doGet(InfoServlet.java:21) at javax.servlet.http.HttpServlet.service(HttpServlet.java:622) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at cn.ntt.Util.EncodingFilter.doFilter(EncodingFilter.java:44) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:502) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1132) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1533) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1489) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source) Dao里的代码 public List<Info> searchInfo(String sqlvalue,String subsql,String type,int start,int end){ List<Info> list = new ArrayList<Info>(); Connection conn=null; PreparedStatement ps=null; ResultSet rs =null; try { conn = JdbcUtil.getConn(); String sql="SELECT * FROM T_INFO "; if(!"".equals(subsql)&&subsql!=null){ if(subsql.equals("info_content")){ sql+="WHERE INFO_CONTENT "; }else if(subsql.equals("info_phone")){ sql+="WHERE INFO_PHONE "; }else if(subsql.equals("info_email")){ sql+="WHERE INFO_EMAIL "; }else if(subsql.equals("id")){ sql+="WHERE ID "; }else if(subsql.equals("info_title")){ sql+="WHERE INFO_TITLE "; }else if(subsql.equals("info_linkman")){ sql+="WHERE INFO_LINKMAN "; }if(type.equals("all")){ sql += " = '" + sqlvalue + "'"; }else if(type.equals("like")){ sql += "like '%" + sqlvalue + "%' "; } sql+=" ORDER BY ID DESC"; sql="SELECT * FROM(SELECT U.*, ROWNUM RN FROM("+sql+")"+ "U WHERE ROWNUM<=?) A WHERE A.RN>=?"; } //编译SQL语句 ps=conn.prepareStatement(sql); ps.setInt(1, end); ps.setInt(2,start); rs = ps.executeQuery();//结果集,只有遍历时才用 while(rs.next()){ Info info =new Info(); info.setId(rs.getInt("ID")); info.setInfo_type(rs.getString("INFO_TYPE")); info.setInfo_title(rs.getString("INFO_TITLE")); info.setInfo_content(rs.getString("INFO_CONTENT")); info.setInfo_phone(rs.getString("INFO_PHONE")); info.setInfo_linkman(rs.getString("INFO_LINKMAN")); info.setInfo_email(rs.getString("INFO_EMAIL")); list.add(info); } }catch(SQLException e){ e.printStackTrace(); }finally{ JdbcUtil.closeConn(rs, ps, conn); } return list; } Servlet的代码 else if("search".equals(flag)){ //获取left.jsp中关键字查询和条件查询 String sqlvalue=req.getParameter("sqlvalue"); String subsql=req.getParameter("subsql"); String type=req.getParameter("type"); List<Info> list=infoDao.search(sqlvalue, subsql, type); int total=list.size();//总共的条数 int totalPage=0;//总共的页数 if(total%5==0){ totalPage=total/5; }else{ totalPage=total/5+1; } /*totalPage=total%3==0?total/3:total/3+1;*/ String cp=req.getParameter("currPage"); if(cp==null||cp==""){ cp="1"; } int currPage=Integer.parseInt(cp); if(currPage<1){ currPage=1; }else if(currPage>totalPage){ currPage=totalPage; } int start=0;//开始的条数 int end=0;//结束的条数 start=(currPage-1)*5+1; end=currPage*5; //存放进searchInfo这个Dao方法里 List<Info> infolist=infoDao.searchInfo(sqlvalue, subsql, type, start, end); req.setAttribute("start", start); req.setAttribute("end", end); req.setAttribute("currPage", currPage); req.setAttribute("totalPage", totalPage); req.setAttribute("infolist", infolist); req.setAttribute("infolist", infolist); req.getRequestDispatcher("pages/show/searchshow.jsp").forward(req, resp); }

Springboot启动时报错:Caused by: java.sql.SQLSyntaxErrorException: ORA-02275: 此表中已经存在这样的引用约束条件。关于JPA的使用

使用的是Oracle数据库, 在数据库中我已经创建好了表,表之间的主外键关系我是手动来创建的。 userrolerecid references md_role(recid) not null, userclassrecid references md_class(recid) not null , 类似这样的关系。 然后在使用jpa的时候 我是这样创建bean的 @OneToOne(cascade=CascadeType.ALL) //级联操作 @JoinColumn(name="userrolerecid",referencedColumnName="recid") private RoleInfo roleInfo; @OneToOne(cascade=CascadeType.ALL) //级联操作 @JoinColumn(name="userclassrecid",referencedColumnName="recid") private ClassInfo classInfo; 然后就报类似于这样的错误 Caused by: java.sql.SQLSyntaxErrorException: ORA-02275: 此表中已经存在这样的引用约束条件 请问怎么解决?

java.sql.SQLException ORA-04030:

批量插入6000条数据的时候,报错 java.sql.SQLException ORA-04030:在尝试分配 2024 字节 (kxs-heap-c,kghsstk) 时进程内存不足 java 数据库连接采用 org.mybatis.spring.SqlSessionFactoryBean

java.sql.SQLException ORA-12505

Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 172.22.246.26:1521:oracle ora - 12505,TNS:侦听器目前并不知道SID给定的连接描述符 连接客户端所使用的描述符是: 172.22.246.26:1521:甲骨文 小弟对于oracle数据库的使用不够熟悉,报了这个错误,我在网上查是什么admin文件夹中的tnsnames.ora有问题,但是,我其他项目中的数据库连接使用都没有问题

Myeclipse连接远程服务器上的Oracle数据库时连不上,报“用户名/口令无效; 登录被拒绝”

Myeclipse连接远程服务器上的Oracle数据库时连不上,报“用户名/口令无效; 登录被拒绝”,但是用PLsql登陆此账号是可以登录上的,而且其他带电脑上的Myeclipse是可以用这个账号连数据库的 java.sql.SQLException: ORA-01017: 用户名/口令无效; 登录被拒绝 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:283) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:278) at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(T4CTTIoauthenticate.java:785) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:362) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:146) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:195) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:184) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:200) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1086) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1073) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:44) at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsync hronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) 求大神指点

java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available

项目中连续启动三天就会报此错误,重启后就好了,过几天又出现此问题,以下是配置和错误信息,求大牛们解答 ``` spring.datasource.username=xxx 密码和连接ip... spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.platform=mysql spring.datasource.initialize=false spring.datasource.data=classpath:sql/data-init.sql spring.datasource.schema=classpath:sql/schema-mysql.sql spring.datasource.sqlScriptEncoding=UTF-8 spring.datasource.continueOnError=true spring.datasource.test-while-idle=true spring.datasource.validation-query=SELECT 1 spring.datasource.xa.data-source-class-name=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource spring.jpa.generate-ddl=false spring.jpa.hibernate.ddl-auto=update spring.jpa.show-sql=false spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.ImprovedNamingStrategy spring.datasource.test-on-borrow=true spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect spring.datasource.type=com.zaxxer.hikari.HikariDataSource spring.datasource.hikari.read-only=false spring.datasource.hikari.connection-timeout=60000 spring.datasource.hikari.idle-timeout=60000 spring.datasource.hikari.validation-timeout=3000 spring.datasource.hikari.max-lifetime=60000 spring.datasource.hikari.login-timeout=5 spring.datasource.hikari.maximum-pool-size=60 spring.datasource.hikari.minimum-idle=10 ``` ``` 2019-03-12 08:10:46,139 ERROR [https-jsse-nio-443-exec-9] o.s.b.w.s.s.ErrorPageFilter [ErrorPageFilter.java:190] Forwarding to error page from request [/api/storages/volumeType/findVolumeTypeByBo] due to exception [Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection] org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:450) at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:378) at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:474) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:289) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:98) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688) at com.sugon.cloudview.cmz.storage.serviceImpl.VolumeTypeServiceImpl$$EnhancerBySpringCGLIB$$ab504fe9.findVolumeTypeByBo(<generated>) at com.sugon.cloudview.cmz.storage.api.StorageApi.findVolumeTypeByBo(StorageApi.java:371) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:877) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:783) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:93) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:130) at org.springframework.boot.web.servlet.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66) at org.springframework.boot.web.servlet.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:105) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.springframework.boot.web.servlet.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:123) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) 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:800) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) Caused by: org.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:48) at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111) at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:109) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:136) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getConnectionForTransactionManagement(LogicalConnectionManagedImpl.java:254) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.begin(LogicalConnectionManagedImpl.java:262) at org.hibernate.resource.transaction.backend.jdbc.internal.JdbcResourceLocalTransactionCoordinatorImpl$TransactionDriverControlImpl.begin(JdbcResourceLocalTransactionCoordinatorImpl.java:214) at org.hibernate.engine.transaction.internal.TransactionImpl.begin(TransactionImpl.java:56) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.beginTransaction(HibernateJpaDialect.java:164) at org.springframework.orm.jpa.JpaTransactionManager.doBegin(JpaTransactionManager.java:400) ... 70 common frames omitted Caused by: java.sql.SQLTransientConnectionException: HikariPool-1 - Connection is not available, request timed out after 60000ms. at com.zaxxer.hikari.pool.HikariPool.createTimeoutException(HikariPool.java:669) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:183) at com.zaxxer.hikari.pool.HikariPool.getConnection(HikariPool.java:148) at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128) at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122) at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35) at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:106) ... 77 common frames omitted ```

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

程序员请照顾好自己,周末病魔差点一套带走我。

程序员在一个周末的时间,得了重病,差点当场去世,还好及时挽救回来了。

和黑客斗争的 6 天!

互联网公司工作,很难避免不和黑客们打交道,我呆过的两家互联网公司,几乎每月每天每分钟都有黑客在公司网站上扫描。有的是寻找 Sql 注入的缺口,有的是寻找线上服务器可能存在的漏洞,大部分都...

点沙成金:英特尔芯片制造全过程揭密

“亚马逊丛林里的蝴蝶扇动几下翅膀就可能引起两周后美国德州的一次飓风……” 这句人人皆知的话最初用来描述非线性系统中微小参数的变化所引起的系统极大变化。 而在更长的时间尺度内,我们所生活的这个世界就是这样一个异常复杂的非线性系统…… 水泥、穹顶、透视——关于时间与技艺的蝴蝶效应 公元前3000年,古埃及人将尼罗河中挖出的泥浆与纳特龙盐湖中的矿物盐混合,再掺入煅烧石灰石制成的石灰,由此得来了人...

上班一个月,后悔当初着急入职的选择了

最近有个老铁,告诉我说,上班一个月,后悔当初着急入职现在公司了。他之前在美图做手机研发,今年美图那边今年也有一波组织优化调整,他是其中一个,在协商离职后,当时捉急找工作上班,因为有房贷供着,不能没有收入来源。所以匆忙选了一家公司,实际上是一个大型外包公司,主要派遣给其他手机厂商做外包项目。**当时承诺待遇还不错,所以就立马入职去上班了。但是后面入职后,发现薪酬待遇这块并不是HR所说那样,那个HR自...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

C++11:一些微小的变化(新的数据类型、template表达式内的空格、nullptr、std::nullptr_t)

本文介绍一些C++的两个新特性,它们虽然微小,但对你的编程十分重要 一、Template表达式内的空格 C++11标准之前建议在“在两个template表达式的闭符之间放一个空格”的要求已经过时了 例如: vector&lt;list&lt;int&gt; &gt;; //C++11之前 vector&lt;list&lt;int&gt;&gt;; //C++11 二、nullptr ...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

深入剖析Springboot启动原理的底层源码,再也不怕面试官问了!

大家现在应该都对Springboot很熟悉,但是你对他的启动原理了解吗?

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发(16k)

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

【阿里P6面经】二本,curd两年,疯狂复习,拿下阿里offer

二本的读者,在老东家不断学习,最后逆袭

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

《经典算法案例》01-08:如何使用质数设计扫雷(Minesweeper)游戏

我们都玩过Windows操作系统中的经典游戏扫雷(Minesweeper),如果把质数当作一颗雷,那么,表格中红色的数字哪些是雷(质数)?您能找出多少个呢?文中用列表的方式罗列了10000以内的自然数、质数(素数),6的倍数等,方便大家观察质数的分布规律及特性,以便对算法求解有指导意义。另外,判断质数是初学算法,理解算法重要性的一个非常好的案例。

《Oracle Java SE编程自学与面试指南》最佳学习路线图(2020最新版)

正确选择比瞎努力更重要!

面试官:你连SSO都不懂,就别来面试了

大厂竟然要考我SSO,卧槽。

微软为一人收购一公司?破解索尼程序、写黑客小说,看他彪悍的程序人生!...

作者 | 伍杏玲出品 | CSDN(ID:CSDNnews)格子衬衫、常掉发、双肩包、修电脑、加班多……这些似乎成了大众给程序员的固定标签。近几年流行的“跨界风”开始刷新人们对程序员的...

终于,月薪过5万了!

来看几个问题想不想月薪超过5万?想不想进入公司架构组?想不想成为项目组的负责人?想不想成为spring的高手,超越99%的对手?那么本文内容是你必须要掌握的。本文主要详解bean的生命...

我说我懂多线程,面试官立马给我发了offer

不小心拿了几个offer,有点烦

自从喜欢上了B站这12个UP主,我越来越觉得自己是个废柴了!

不怕告诉你,我自从喜欢上了这12个UP主,哔哩哔哩成为了我手机上最耗电的软件,几乎每天都会看,可是吧,看的越多,我就越觉得自己是个废柴,唉,老天不公啊,不信你看看…… 间接性踌躇满志,持续性混吃等死,都是因为你们……但是,自己的学习力在慢慢变强,这是不容忽视的,推荐给你们! 都说B站是个宝,可是有人不会挖啊,没事,今天咱挖好的送你一箩筐,首先啊,我在B站上最喜欢看这个家伙的视频了,为啥 ,咱撇...

立即提问
相关内容推荐