小编dha*_*n10的帖子

无法使受保护的最终 java.lang.Class java.lang.ClassLoader.defineClass

目前我正在关注此 youtube 上的课程视频:https://www.youtube.com/watch?v
=BHoiNd64w0c&list=PLQag1tT77Ben3dupVMgYtoi_PVVQVRdD6&index=13 一切正常,我通过单击 Eclipse 中的播放按钮来运行我的项目,导师的操作有点不同,因为他使用sts工具。right click > run as > maven install
但是当尝试基于这个问题How to fix "Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass?时会发生错误,我已经使用了较新的 spring 版本。这是我的 pom.xml:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.7</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>java-login-security</groupId>
    <artifactId>login-system</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>login-system</name>
    <description>login system</description>
    <properties>
        <java.version>17</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-jpa</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <scope>runtime</scope>
            <optional>true</optional>
        </dependency> …
Run Code Online (Sandbox Code Playgroud)

java spring maven

24
推荐指数
1
解决办法
6万
查看次数

如何使用 google Drive api v3 重命名文件?电子、节点

对于 v2,我们可以获取如何使用 google Drive API 重命名文件的示例。这是链接 https://developers.google.com/drive/api/v2/reference/files/patch#examples
这是我们如何在 javascript 中使用 v2 重命名文件

/**
 * Rename a file.
 *
 * @param {String} fileId <span style="font-size: 13px; ">ID of the file to rename.</span><br> * @param {String} newTitle New title for the file.
 */
function renameFile(fileId, newTitle) {
  var body = {'title': newTitle};
  var request = gapi.client.drive.files.patch({
    'fileId': fileId,
    'resource': body
  });
  request.execute(function(resp) {
    console.log('New Title: ' + resp.title);
  });
}
Run Code Online (Sandbox Code Playgroud)

我需要使用 Electron 和 Nodejs 创建类似 v2 示例的函数。这是我到目前为止所做的mfm-gdrive

node.js google-drive-api electron

5
推荐指数
1
解决办法
4800
查看次数

Laravel:证书链是由不受信任的机构颁发的

这是完整的错误消息:

SQLSTATE[08001]:[Microsoft][SQL Server 的 ODBC 驱动程序 18]SSL 提供程序:证书链由不受信任的机构颁发。

我有一个私人公司项目,目前该项目是使用CodeIgniter3开发的,数据库使用Microsoft SQL Server。我需要将项目变成 Laravel9。因此,我遵循一些指示,直到在这里遇到一些教程:

安装没有遇到太大问题。我使用合适的驱动程序按照第一个列表中的过程进行操作。但随后面临上述错误。

php sql-server laravel

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

electron ×1

google-drive-api ×1

java ×1

laravel ×1

maven ×1

node.js ×1

php ×1

spring ×1

sql-server ×1