Home > Article > Computer Tutorials > Apple install windows10
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
3 , you can choose to download binary or complete. The compete version downloaded here is gradle-7.5.1-all.zip
Gradle installation1. Download the gradle-7.5.1-all.zip version After packaging, unzip it to the current folder, as shown below
2. The unzipped directory is as follows
Gradle environment variable configuration1. Right-click this computer
2. Click Properties to find Advanced Configuration
3. Click Advanced System Configuration
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)
5. Double-click System variable path
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.
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.
Mirror warehouse configuration1. Find the init.d folder in the decompressed gradle-7.5.1 directory
2. Open init.gradle, if not create a new one Just file
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
Springboot3 project construction Create a new Springboot3 project 1. Use Idea to create a newa. As shown below, click Intellij Idea File-> New->Project
b. Choose to use Spring Initializr to create a new project
c. Fill in the project information, select Gradle, and select the Java version. The Java version is based on your own needs. Select
2, Create a new webpagea. Open https://start.spring.io/address
b. Select the new project information, including build tools, languages, Version
c. Fill in project information
d. Select the required dependencies
3. Open the project with Intellij Ideaa. 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 Gradle1. Create a new Gradle warehouse folder, as shown in the figure below
2. Click Idea FIle->Setting
3 . Setting interface: Click Build, Execution, deployment > Build Tools > Gradle
4. Set Gradle user home to the folder created in step 1
5 . Set Use Gradle from as shown in the figure below, where the directory is the Gradle installation directory
6. Modify the Gradle JVM, here to jdk17, according to the needs of the self-generated version
project Deployment1. Idea import project construction project
2. Modify the configuration file as follows. The following is the yml file configuration method
Need to introduce druid related packages
implementation 'com.alibaba:druid-spring-boot-starter:1.2.12'
3. The configuration is successful as follows
Question 1. Build error As followsCaused 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:
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!