"git@gitlab.schbrain.com:framework/schbrain-canal.git" did not exist on "2dfc24784534c8487f0862ab24a22d91639dcc85"
Commit 61a446be authored by liaozan's avatar liaozan 🏀

chore: upgrade node version

parent 50c7a225
package com.schbrain.archetype.initializer.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.cloud.CloudPlatform;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
......@@ -11,8 +14,14 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration(proxyBeanMethods = false)
public class WebConfiguration implements WebMvcConfigurer {
@Autowired
private Environment environment;
@Override
public void addCorsMappings(CorsRegistry registry) {
if (CloudPlatform.KUBERNETES.isActive(environment)) {
return;
}
registry.addMapping("/**")
.allowedOrigins("*")
.allowedMethods("*")
......
......@@ -19,15 +19,16 @@
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>${frontend-maven-plugin.version}</version>
<configuration>
<nodeVersion>v17.7.2</nodeVersion>
<nodeDownloadRoot>https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/</nodeDownloadRoot>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<goals>
<goal>install-node-and-npm</goal>
</goals>
<configuration>
<nodeVersion>v17.7.1</nodeVersion>
</configuration>
</execution>
<!-- Install all project dependencies -->
<execution>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment