Home  >  Article  >  Computer Tutorials  >  Apple install windows10

Apple install windows10

王林
王林forward
2024-02-12 18:27:191174browse

php editor Baicao introduces you a method: how to install Windows 10 on Apple computers. Although Apple computers themselves are based on the Mac OS system, some users may need to use the Windows 10 operating system in specific situations. Fortunately, Apple computers can achieve the goal of installing Windows 10 by using the Boot Assistant tool and Boot Camp software. In this article, we will introduce you to the entire installation process in detail, allowing you to easily experience the powerful features of Windows 10 on your Apple computer.

https://gradle.org/releases/

2. As shown below, select the version according to your needs. Here select 7.5.1

Apple install windows10

3 , you can choose to download binary or complete. The compete version downloaded here is gradle-7.5.1-all.zip

Apple install windows10Gradle installation

1. Download the gradle-7.5.1-all.zip version After packaging, unzip it to the current folder, as shown below

Apple install windows10

2. The unzipped directory is as follows

Apple install windows10Gradle environment variable configuration

1. Right-click this computer

Apple install windows10

2. Click Properties to find Advanced Configuration

Apple install windows10

3. Click Advanced System Configuration

Apple install windows10

4. Click Environment Variables to configure environment variables and add new system variables

Variable name: GRADLE_HOME

Variable value: E:\software\gradle-7.5.1 (here is the path to the Gradle you decompressed)

Apple install windows10

5. Double-click System variable path

Apple install windows10

6. New variable: %GRADLE_HOME%\bin

#7. Verify whether Gradle is installed successfully. Win r opens the following window, enter cmd, and click OK to open the command window.

Apple install windows10Apple install windows10

8. Verify whether Gradle is installed successfully. Enter the command: gradle -v in the command window. If the following is displayed, the installation is successful.

Apple install windows10Mirror warehouse configuration

1. Find the init.d folder in the decompressed gradle-7.5.1 directory

Apple install windows10

2. Open init.gradle, if not create a new one Just file

Apple install windows10

3. Configure the domestic mirror warehouse of the warehouse to improve the download speed of dependencies. Add the following configuration

allprojects { repositories { mavenLocal() maven { name "Alibaba" ; url "https://maven.aliyun.com/repository/public" } maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" } mavenCentral() } buildscript { repositories { maven { name "Alibaba" ; url 'https://maven.aliyun.com/repository/public ' } maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/' } maven { name "M2" ; url 'https://plugins.gradle.org/m2/ ' } } }}

4. Configuration screenshot

Apple install windows10Springboot3 project construction Create a new Springboot3 project 1. Use Idea to create a new

a. As shown below, click Intellij Idea File-> New->Project

Apple install windows10

b. Choose to use Spring Initializr to create a new project

Apple install windows10

c. Fill in the project information, select Gradle, and select the Java version. The Java version is based on your own needs. Select

Apple install windows102, Create a new webpage

a. Open https://start.spring.io/address

Apple install windows10

b. Select the new project information, including build tools, languages, Version

Apple install windows10

c. Fill in project information

Apple install windows10

d. Select the required dependencies

Apple install windows103. Open the project with Intellij Idea

a. If you use the one created by Idea, just open it directly;

b. If you use the web page After creating the download, import it into Idea.

Intellij Idea Configure Gradle

1. Create a new Gradle warehouse folder, as shown in the figure below

Apple install windows10

2. Click Idea FIle->Setting

Apple install windows10

3 . Setting interface: Click Build, Execution, deployment > Build Tools > Gradle

Apple install windows10

4. Set Gradle user home to the folder created in step 1

Apple install windows10

5 . Set Use Gradle from as shown in the figure below, where the directory is the Gradle installation directory

Apple install windows10

6. Modify the Gradle JVM, here to jdk17, according to the needs of the self-generated version

Apple install windows10 project Deployment

1. Idea import project construction project

2. Modify the configuration file as follows. The following is the yml file configuration method

Apple install windows10

Need to introduce druid related packages

implementation 'com.alibaba:druid-spring-boot-starter:1.2.12'Apple install windows10

3. The configuration is successful as follows

Apple install windows10Question 1. Build error As follows

Caused by: org.gradle.api.InvalidUserCodeException: Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven( http://maven.aliyun.com/nexus /content/groups/public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository .html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.

As shown below:

Apple install windows10

Need to check the configuration in the init.gradle file

If it is the following configuration

maven { name "Bstek" ; url "http://nexus.bsdn.org/content/groups/public/" }

maven { name "Bstek" ; url 'http://nexus.bsdn.org/content/groups/public/' }

needs to be modified to

maven { name "Bstek" ; url "https://nexus.bsdn.org/content/groups/public/" }

maven { name "Bstek" ; url 'https://nexus.bsdn.org/content/groups/public/ ' }


After modifying the configuration, the build will be successful.

The above is the detailed content of Apple install windows10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:pc-daily.com. If there is any infringement, please contact admin@php.cn delete