我在 yml 中配置了一个属性
foobar:
baz: 7
Run Code Online (Sandbox Code Playgroud)
和一个带有注释的配置类
@ConfigurationProperties(prefix = "foobar")
Run Code Online (Sandbox Code Playgroud)
一切都工作正常。
我的组织中的代码通常是驼峰命名法,因此我将属性和前缀都重命名为fooBar
. IntelliJ 现在突出显示prefix = "foobar"
包含错误的行:“前缀必须采用规范形式”。在 yml 配置中保留camelCasing 的同时我能做什么?
无法在调试视图中获取变量值并且 Eclipse 无法在断点处停止执行
import java.io.*;
import jxl.*;
public class Excelread {
public static void main(String[] args) throws Throwable {
String Filename = "C:\\library\\TestData.xls";
String Sheetname = "Source";
String[][] arrayExcelData = null;
FileInputStream fis = new FileInputStream(Filename);
Workbook WB = Workbook.getWorkbook(fis);
Sheet SH = WB.getSheet(Sheetname);
int TotalCol = SH.getColumns();
int TotalRow = SH.getRows();
System.out.println(TotalCol + " " + TotalRow);
arrayExcelData = new String[TotalRow][TotalCol];
for (int i = 0; i < TotalRow; i++) {
for (int j = 0; j < TotalCol; …
Run Code Online (Sandbox Code Playgroud)