Git Product home page Git Product logo

myprojectspace's People

Contributors

wasdeq7521 avatar

Watchers

James Cloos avatar  avatar

myprojectspace's Issues

工作-遇到的问题-Java compiler level does not match

1、先确定好jdk版本,例如1.7
2、进入 windows---proferences---java--compiler设置编译出来的文件使用的格式是 1.7版本的
3、进入项目--properties---java Compiler 把项目编译版本也设置成 1.7(如果项目使用IDE默认的jdk,可跳过这一步)
4、进入项目--properties---(Myeclipse,在eclipse中没有这个层级)---project Facets设置java文件的版本为 1.7(这步关键)
5、保存,问题解决

注:若编译器版本不一致,可能会导致很多jar包报错,乍一看还以为是jar包的问题。我遇到这个问题的时候先移除了有问题的jar包,甚至移除了整个项目,重新从SVN上下载项目.....依然没解决问题,切换到markers窗口,才发现是编译器的问题

近期工作心得与总结---总纲

时间:2017.12.1始
近期在做IPTVServer2.2项目的开发,使用springboot+mybatis+mysql的基本架构,其中mybatis没有使用过。开发过程中遇到很多问题,mybatis、mysql的都有,个人感觉数量有点多,并且在解决问题的过程中学到了很多东西,有必要做记录,以防做完就忘的情况(这种情况简直不能再多...痛定思痛),这种行为要逐渐成为一种习惯,做好学习的记录。后续的几篇将会分类汇总近期的工作心得及总结。

异常The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path解决办法

原因分析:在java web工程下没有引入中间件(服务器tomcat)运行的library

解决办法:
(1): 确认eclipse中server的运行环境是否有配置,设置方法为:Window → Preferences → Server → Runtime Environments →Add → 选择Apache的版本后点Next,再填入你apache tomcat软件的安装(解压后)目录。
(2): 右击web工程 → Build Path → Configure build path... → Java Build Path → Libraries → Add Libray... → Server Runtime →Next> → Apache Tomcat Server →Finish。
(3): 切换到Java Build Path界面中的Orader and Export,勾选Tomcat。
(4): 右击web工程 → 属性 → Project Facets → 点击右侧tab选择Runtimes → 勾选tomcat → OK。

                                                                                                本文原创由`bluetata`发布于blog.csdn.net

SpringBoot-学习-遇到的问题-cannot be read or is not a valid ZIP file

这是在学习springboot所遇到的第一个问题,折磨了近一周。
问题描述:
学习springboot初始化,新建了一个demo,但是项目却出现叹号,看buildpath没有任何jar包标红打叉,切换到markers视图(markers视图是真不错,简单来说,如果要在Problem视图中显示错误信息,并实现错误定位功能,就需要用到marker),找到错误位置和错误描述,描述如下:

Archive for required library: ‘jar包位置’ in project ‘项目名字’ cannot be read or is not a valid ZIP file

在网上查了很多资料,基本都是说:用记事本打开项目根目录的.classpath文件,找到“”这一行,删掉。然而,我的.classpath文件根本没有这一行.....
今天(2017.9.4)再次寻找解决办法,在百度知道中看到一个问答说让把这个jar包删掉再次更新maven即可。试了一下,在新建的maven仓库中,这个问题解决了,但是切换到以前的仓库(平时工作用的仓库,里面已经有很多jar包)这种方法就不能解决问题,不知道为什么。

总结:
基本来说,出现这个问题,将有问题的jar包删掉,再重新更新项目就行,如果不行,换一个maven仓库,再试一下。

近期工作心得与总结---MySQL篇---group_contact()函数

1、有关group_contact()函数的用法
group_contact()能将多行的值合并到一起,默认以“,”为分割符,多和group by连用。完整语法:
group_concat([DISTINCT] 要连接的字段 [Order BY ASC/DESC 排序字段] [Separator '分隔符'])
select AGENT_ID,GROUP_CONCAT(TYPE_ID) types from tb_epg_task group by AGENT_ID
AGENT_ID | types
8 | 1,2,3
15 | 1,3
16 | 2

Java7和FTPClient不兼容问题

这两天开发一款从ftp服务器下载上传的程序,基本功能很简单,本以为一天就搞定的事,纠结了3天。。。
在测试下载功能的时候,遇到了:
Software caused connection abort: socket write error
异常。经多方查找,才知道这是Java7在Windows平台上运行,在与ftp通信时的一个bug。
具体原因是:在安装有 IPv6 和 IPv4 的计算机上,会使用一种 IPv6 模拟的 IPv4(The only difference between JDK7 and older releases is that the JDK is using IPv6 sockets when IPv6 is enabled and so IPv4-mapped IPv6 addresses are used),而 windows 防火墙会把这种模拟的 IPv4 数据挡住。
目前有三种解决办法:
1、就是java降级,使用Java6。亲测有效,但是会失去很多Java新增功能,例如正则匹配中的matcher.group(),不算是特别好的解决方案
2、就是加上虚拟机参数:-Djava.net.preferIPv4Stack=true。怎么修改虚拟机参数网上有很详细的教学。
3、让程序在Linux环境下运行,避开Windows的防火墙。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.