first labWork new

This commit is contained in:
Максим Сергунов 2023-04-11 11:08:06 +04:00
parent e33d8eb251
commit a708009248
6 changed files with 39 additions and 0 deletions

26
MainPage/.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.parcel-cache

View File

0
MainPage/MainPage.html Normal file
View File

0
MainPage/package-lock.json generated Normal file
View File

0
MainPage/package.json Normal file
View File

View File

@ -0,0 +1,13 @@
package com.example.demo;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry){
registry.addMapping("/**").allowedMethods("*");
}
}