java编程出现的错误对应的解决方法
error: could not open D:javajre1.8libamd64jvm.cfg解决方法:把java的环境变量%JAVA_HOME%/bin上移到最上面 优化查看网页源代码Ctrl+U 测试浏览器是否支持html5访问http://html5test.com word封面加下划线打好字 ctrl+U 在字后面打空格自动生成下划线 邮件服务器的搭建和客户端的安装1.安装易邮服务器 3.安装foxmail 邮箱—-新建账户—- **@shop.com 接收邮件服务器设为 localhost 发送邮件服务器设为 loaclhost 制作自定义桌面图标教程首先 图标要求是256256d的 可以使用PS修改 步骤如下: WIN10开机卡在了正在准备自动修复Win10系统启动到LOGO界面后,强制重启,反复3次左右,至到显示疑难解答,我们点击疑难解答进入; 计算机寻址范围:指的是32位 2的32次方 关于磁盘磁盘中的凹槽每一个存放4kb的内存 当文件内存小与4kb 在磁盘依然是占用4kb的空间 如果文件超过了4kb 则占用8kb的空间 以此类推 每超过 即加4kb 配置java环境的原因整除如果整数a除以非零整数b,商为整数,余数为零 关于后台传递数据正常,前端页面不显示的bug调试思路第一步:在网页按F12---network---点击list.do---respone public void setContent(String content) { Content = content; } 而不是正常的如下代码 public void setContent(String content) { this.Content = content; } java编译版本不匹配进入 windows—proferences—java–compiler设置编译出来的文件使用的格式是 1.7版本的 (设置成多少都行,只要兼容,并且与你项目的编译版本一直就可以,我这里统一设置成1.7) Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war)错误原因 <!-- 配置web.xml文件的配置 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.2</version> <configuration> <!-- 指定web.xml的路径 --> <webXml>WebRootWEB-INFweb.xml</webXml> <!-- 指定jsp、js、css的路劲 --> <warSourceDirectory>WebRoot</warSourceDirectory> </configuration> </plugin> Description Resource Path Location Type Archive for required library: ‘E:/maven/cangku/org/mybatis/mybatis/3.3.0/mybatis-3.3.0.jar‘ in project ‘SSMDemo‘ cannot be read or is not a valid ZIP file错误原因:网络问题,maven仓库有jar包,但不全 spring配置异常之Description Resource Path Location Type Referenced file contains errors (htt解决方法:把spring-beans.xsd maven install时出现的警告报错信息 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/E:/bos_repository/bos_repository/com/thoughtworks/xstream/xstream/1.3.1/xstream-1.3.1.jar) to field java.util.Properties.defaults WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 原因:JDK版本过高,不影响项目运行 sun.misc.BASE64Encoder报错只需要在project build path中先移除JRE System Library,再重新添加库JRE System Library,接着重新编译后就一切正常了 SpringBoot遇到的问题导入项目时出现cannot find value的问题可能的问题:Maven仓库没配置好 端口占用问题运行独立jar包时可能会出现端口占用问题,springboot的内嵌tomcat的端口8080可能会被oracle (我就是)占用或者 tomcat(默认8080)占用 解决方法重新配置内嵌tomcat的端口号步骤如下
通过命令行设置属性值 启动的应用的端口号在命令行运行时,连续的两个减号--就是对application.properties中的属性值进行赋值的标识。 问题:通过命令行就能更改应用运行的参数很不安全 编写SpringBoot demo过程遇到的2个错误错误1 groupId 和artifactId 和项目名不一致,我这里项目名SpringBootDemo而pom文件中是springbootDemo,所以出现这个错误,修改如上图即可 错误3 spring boot javax/annotation/ManagedBean : Unsupported major.minor version 51.0 原因jdk版本的问题 ,maven自带的jar版本与javax的jar版本不符,我修改为1.6即可解决 错误4 Establishing SSL connection without server‘s identity verification is not recommended 解决方法 MySQL 5.5.45+,5.6.26+ and 5.7.6+ 这些版本的数据库需要手动指定SSL是否开启,所以原来的连接字符串:jdbc.url=jdbc:mysql://127.0.0.1:3306/test就不可以了。 解决: 需要在其后附加useSSL=true或false,使用新的连接字符串:jdbc.url=jdbc:mysql://127.0.0.1:3306/test&useSSL=false问题就解决了 Spring Boot 启动报错Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFa错误代码 import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class HelloApplication { public static void main(String[] args) { SpringApplication.run(HelloController.class,args); } } import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class HelloController { @RequestMapping("/") public String index() { return "Hello Spring Boot 2.0!"; } } 原因: Springboot版本过低引起的redis报错:Error processing condition on org.springframework.boot.autoconfigure.data.redis.RedisAutoCon 这个问题是由于springboot的版本问题。 使用springboot 2.x以上版本的时候,pom.xml文件中 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-redis</artifactId> <version>RELEASE</version> </dependency> 应替换为 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 当报错Failed to read Class-Path attribute from manifest of jar file:/C:/Users/Administrator/.m2/repository到maven仓库将jar包删除再下载即可 导入项目:The project description file (.project) for ‘xxx‘ is missing.解决方法: 进入到workspace中,进入到workspace.metadata.pluginsorg.eclipse.core.resources.projects 文件夹下,然后将李某不能打开的工程给删除了 restartmyeclipse即可解决 再不行的话就删了再新建maven moudule重新把src和pom复制一下手动导入吧(最稳的方法) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |