小编Don*_*asa的帖子

Heroku - git push/deployment 期间出错,此代码的相同版本已经构建

我在将 springboot 应用程序部署到 Heroku 时遇到问题。运行后git push heroku master,我遇到以下错误:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  9.350 s
[INFO] Finished at: 2020-12-22T06:33:14Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project audit: Fatal error compiling: invalid target release: 11 -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For …
Run Code Online (Sandbox Code Playgroud)

java git github heroku heroku-cli

6
推荐指数
2
解决办法
6816
查看次数

SheetJS js-xlsx - SheetJS 使用百分比值自动格式化我的列

我有以下 HTML 表格和 Javascript 函数,使用 SheetJS 解析表格,然后将它们导出到 Excel 文件。

var tablesToExcel = (function() {

    return function(tables, wsnames, wbname) {

        var workbook = XLSX.utils.book_new();

        for (var i = 0; i < tables.length; i++) {
            var ws1 = XLSX.utils.table_to_sheet(document.getElementById(tables[i]));
            console.log(ws1);
            XLSX.utils.book_append_sheet(workbook, ws1, wsnames[i]);
        }
        XLSX.writeFile(workbook, wbname);
    }
})();
Run Code Online (Sandbox Code Playgroud)
<table id="po-table">
  <thead class="thead-dark">
    <tr>
        <th scope="col"> Operating Unit</th>
        <th scope="col"> Rate </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Leyte</td>
      <td>90%</td>
    </tr>
  </tbody>
</table>
<table id="cert-table">
  <thead class="thead-dark">
    <tr>
        <th scope="col"> Operating Unit</th>
        <th scope="col"> Rate …
Run Code Online (Sandbox Code Playgroud)

html javascript html-table export-to-excel sheetjs

4
推荐指数
1
解决办法
2376
查看次数

如何将类名用作数据类型?

public class node {

    int data;
    node next;

    node(int data){
        this.data = data;
    }
}
Run Code Online (Sandbox Code Playgroud)

这是我在网上看到的一个链接列表的类。我不确定它接下来如何使用节点。

例如, intdata正在创建类型为 的变量数据int。但是然后node next是创建一个名为 next 的变量,类型为 node 吗?但我认为没有节点这样的类型。

有人可以向我解释一下吗?

感谢您的时间。

java

3
推荐指数
2
解决办法
378
查看次数