Cannot switch on a value of type String for source level below 1.7. Only convertible int values or e
来源:互联网 发布:京东联盟和淘宝联盟 编辑:程序博客网 时间:2024/06/06 01:36
Cannot switch on a value of type String for source level below 1.7. Onlyconvertible int values or enum variablesare permitted
一般是因为你导入的项目版本较低导致的;
解决办法:
右键你的项目--->Properties--->Progect Facets--->Java--->将其版本改为1.7及以上即可;
阅读全文
0 0
- Cannot switch on a value of type String for source level below 1.7. Only convertible int values or e
- 十四、switch中可以传递的参数类型(Only convertible int values or enum constants are permitted)
- Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching e
- '<>' operator is not allowed for source level below 1.7
- <>' operator is not allowed for source level below 1.7
- '<>' operator is not allowed for source level below 1.7
- '<>' operator is not allowed for source level below 1.7
- operator is not allowed for source level below 1.7
- Resource specification not allowed here for source level below 1.7
- Resource specification not allowed here for source level below 1.7
- '<>' operator is not allowed for source level below 1.7
- '<>' operator is not allowed for source level below 1.7
- Failed to convert property value of type 'java.lang.String' to required type 'int' for property
- 类似Build Error: #513: a value of type "int" cannot be assigned to an entity of type "char *"
- spring Failed to convert property value of type 'java.lang.String' to required type 'int' for proper
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- Cannot convert value of type [java.lang.String] to required type [java.util.Date] for property 'xxx'
- '<>' operator is not allowed for source level below 1.7
- array 方法
- ZeroMQ 原理及其优点
- k-means 算法
- 笨办法学 Python · 续 练习 9:`sed`
- ubuntu 14.04+opencv+opencv_contrib-3.1.0编译安装
- Cannot switch on a value of type String for source level below 1.7. Only convertible int values or e
- ubuntu卸载某个package失败的处理方法
- 信息论基础
- 2017 Multi-University Training Contest 4 1003 || HDU6069
- 使用jQuery实现点击左右滑动切换特效
- 使用java写一个hello world
- POJ 2349 Arctic Network (最小生成树)
- SpringBoot之配置中心服务化和高可用
- 手机端页面自适应解决方案—rem布局进阶版(附源码示例)