Search Posts

Category: spring-boot

Conncet Rest API with Angularjs

I have written a rest api using Spring Boot and made a login page in angular js. Here is the plunker link for my angular page. And here is my rest api controller @RestController @RequestMapping(“login”) public class BikeController { @GetMapping public List<Bike> list(){ List<Bike> bikes = new ArrayList<>(); return bikes; } How do i connect my controller to the Angular js UI Source: AngularJS

Storing and Reading Files in Angularjs and Spring boot Project? [duplicate]

This question already has an answer here: File Upload using AngularJS 28 answers How to POST binary files with AngularJS (with DEMO) 1 answer I am developing an application using spring boot and angularJs, so I need to upload files(images,PDFs,..etc)from local folders and storing it locally as well and saving file URl in data base, then I need to view that files in web pages. How can i do it with Java and AngularJs ? […]

How to read image data from a BLOB URL in Spring boot

I`m facing a problem while reading a blob url that came from my angular views application and i need to process in my back-end. In my angular I process the image and return the url created to my back-end through a POST METHOD: my URL is processed like this: const file =[0]; this.url = URL.createObjectURL(file); this code produces an URL that I can access the image via browser, the URL that is generated is: […]

Implementing OAuth2.0 with Angular-1 and Spring Boot

I have 2 spring boot projects. One is spring boot web project which I am using as my front end client using angular 1. Another spring boot project is spring boot core project which I am using as my backend server. Server side project contains microservices APIs which I have to secure from direct access from browser. So I have registered my project under OAuth2.0. I am using client_credentials grant type. I am generating JWT […]

How to remove # from URL , SpringBoot & AngularJs application?

This is my TuckeyRewriteFilter filter class public class TuckeyRewriteFilter extends org.tuckey.web.filters.urlrewrite.UrlRewriteFilter { @Override protected void loadUrlRewriter(FilterConfig filterConfig) throws ServletException { String confPath = filterConfig.getInitParameter(“confPath”); ServletContext context = filterConfig.getServletContext(); try { final URL confUrl = getClass().getClassLoader().getResource(confPath); final InputStream config = getClass().getClassLoader().getResourceAsStream(confPath); Conf conf = new Conf(context, config, confPath, confUrl.toString(), false); checkConf(conf); } catch (Throwable e) { throw new ServletException(e); } } } This is my springboot main class public class AdminWebApplication { public static final String […]

AngularJS SpringBoot no authentication csrf protection

My system uses AngularJS 1.6 and Spring Boot2.0. My front end is just a simple form that customers can use to buy tickets for an event. When the page loads it will GET the details of the current active event, then the users can fill the form to be POSTed. No login/registration so it’s just like a google form. I’ve built them as separate projects so they will be running in different ports. Now I […]

AngularJS SpringBoot payment handling

I’m currently handling my first freelance work. It is just a very simple one page ticketing system without registration (like a google form) and an admin page to manage the reservations, both frontends are written in AngularJS v1.6.1 and backends are in SpringBoot2.0. It is supposed to just handle reservations without payment, but now the client is asking to look into a potential 3rd party payment gateway. The implementation will look like this: AngularJS > […]

Spring Boot + AngularJS + Spring Data + JPA CRUD + Hibernate + H2 + HikariCP application.yml [on hold]

I have an application type Spring Boot + AngularJS + Spring Data + JPA CRUD + Hibernate + H2 + HikariCP and I use oracle 11g db. Please, I need help to create the file application.yml? I use this tutorial: , and when I change my application.yml application not run. enter image description here Source: AngularJS

Next Page »