I am learning Spring using the Spring Tool Suite (STS).
On the way, I noticed that there was a shortage of libraries, so I did the following:
Then, all the characters became black and white as shown in the picture below.
I thought it might be a simple garbled character, so I changed the font a lot, but it hasn't improved.
Is there a way to change the color back to the console?
build.gradle
plugins{
id'org.springframework.boot'version'2.7.0'
id 'io.spring.dependency-management 'version' 1.0.11.RELEASE'
id'java'
}
group='com.example'
version = '0.0.1 - SNAPSHOT'
sourceCompatibility='17'
repositories {
mavenCentral()
}
dependencies {
implementation'org.springframework.boot:spring-boot-starter-jdbc'
implementation'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation'org.springframework.boot:spring-boot-starter-web'
implementation'org.springframework.boot:spring-boot-starter-validation'//Added
developmentOnly'org.springframework.boot:spring-boot-devtools'
runtimeOnly'com.h2database:h2'
testImplementation'org.springframework.boot:spring-boot-starter-test'
}
tasks.named ('test') {
useJUnitPlatform()
}
The plug-in ANSI Escape in Console that is installed by default on STS is responsible for this feature.
Possible causes are unintentionally one of the following:
Check the settings for the Ansi Console in the configuration dialog displayed in the Window>Preference menu.
(If you have uninstalled the plug-in, I don't think this setting itself exists.)
© 2024 OneMinuteCode. All rights reserved.