Skip to content

Commit 2e72476

Browse files
Fix proxy issue
1 parent 3ce4cb9 commit 2e72476

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

angular.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"serve": {
5151
"builder": "@angular-devkit/build-angular:dev-server",
5252
"options": {
53-
"browserTarget": "spring-boot-angular-example:build"
53+
"browserTarget": "spring-boot-angular-example:build",
54+
"proxyConfig": "src/proxy.conf.json"
5455
},
5556
"configurations": {
5657
"prod": {
@@ -134,4 +135,4 @@
134135
"cli": {
135136
"analytics": false
136137
}
137-
}
138+
}

build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
id 'org.springframework.boot' version '2.2.2.RELEASE'
3-
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
2+
id 'org.springframework.boot' version '2.4.3'
3+
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
44
id 'java'
55
}
66

@@ -26,6 +26,7 @@ dependencies {
2626
implementation 'org.springframework.boot:spring-boot-starter-actuator'
2727
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2828
implementation 'org.springframework.boot:spring-boot-starter-web'
29+
implementation 'org.springframework.boot:spring-boot-starter-validation'
2930
implementation 'com.h2database:h2:'
3031
compileOnly 'org.projectlombok:lombok'
3132
developmentOnly 'org.springframework.boot:spring-boot-devtools'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"scripts": {
66
"ng": "ng",
7-
"start": "ng serve --proxy-config proxy.conf.json",
7+
"start": "ng serve",
88
"build": "ng build",
99
"test": "ng test",
1010
"lint": "ng lint",
File renamed without changes.

0 commit comments

Comments
 (0)