in28minutes / full-stack-with-angular-and-spring-boot Goto Github PK
View Code? Open in Web Editor NEWYour First Full Stack Application with Angular and Spring Boot
License: MIT License
Your First Full Stack Application with Angular and Spring Boot
License: MIT License
Implemented step 75 and 76 from udemy video same as it show in the video and also compare with the code, still facing problem. I google but couldn't find the solution.
Getting below error:
GET http://localhost:8081/hello-world/path-variable/Ranga 401
Access to XMLHttpRequest at 'http://localhost:8081/hello-world/path-variable/Ranga' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Please help.
What is the password?
Fields Description Remark
A B C D E F G
Device type Device ID Type Multiple SIM Status S/N of Device IMEI/ESN/MEID Device Launch Date Device Status
IMEI(Mandatory) Y/N 1to16(Mandatory) 1to16(Mandatory) DDMMYYYY New/Used
ESN(Mandatory) (Mandatory)
MEID(Mandatory)
Handheld,
Mobile Phone/Feature phone,
Vehicle, Portable(include PDA),
Module,
Dongle,
WLAN Router,
Modem,
Smartphone,
Connected Computer,
Tablet,
e-Book (Mandatory)
S/N of Device
Device Serial Number
IMEI/ESN/MEID The IMEI / ESN / MEID actual value Mandatory
Device launch date Launch Date or Manufacture Date in the format DDMMYYYY Optional
Device Status New/Used New device is a device which is not activated before
Used devices are devices which are used before, but after required modification being sold in the market with different IMEI.
cool. Here is my code for environment.ts, as a suggestion:
export const environment = {
production: false,
api: {
url: 'http://localhost:8585',
jpa: 'http://localhost:8585/jpa',
},
};
of course, the port for your setup will not stay 8585, so feel free to adapt it heavily ;-)
You basically use it in two places, basic-authentication.service and todo-data.service. In basic there is only one instance, in todo-data a couple, so I am just posting a few lines of todo-date as an example. In your version I sort of like that it uses all UPPERCASE because those are constants. This is not the way environment.ts is implemented, though, so you would have to live with lowercase:
import { environment } from 'src/environments/environment';
...
export class TodoDataService {
...
retrieveAllTodos(username) {
return this.http.get<Todo[]>(${environment.api.jpa}/users/${username}/todos
);
...
}
...
}
when we add customized RuntimeExcection("some error occurred ") .in browser's console they show error like DOCTYPE ..... something but in your video show implements like something what is that? help to solve this.
Field authenticationManager in JwtAuthenticationRestController required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration.
JwtAuthenticationRestController.txt
JWTWebSecurityConfig.txt
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.