Reading ClassPath file in Spring Boot/Core Example

This below program reads the status.txt file from the classpath, that is src/main/resources in the maven projects using classpathloader in spring core/spring boot projects. Classpathloader converts it to inputstream, from inputstream we can convert to bufferedinputstream and read the file contents easily. File Structure: Here we have status.txt file inside the resources folder, and we have only the value 100

43 total views, 28 views today

» Read more

Angular 4 CLI + Angular Universal Setup Steps

Angular 4 CLI + Angular Universal Setup Steps: Angular universal is superb component for angular projects for server side rendering, which really resolves SEO related issues to the great extend. But setting up a angular universal will become little complex if you try after developing your complete applications. Because some of the component you used in your angular 4 project

917 total views, 1 views today

» Read more

Picking Best UI Framework for Angular 4 Projects

Picking Best UI Framework for Angular 4 Projects: I have been spending more than 2 weeks on picking best UI framework for my new angular 4 project. Unfortunately no straight forward conclusion. But I am sharing my complete analysis on this to help you guys for better UI pick for your angular 4 projects. Criteria to pick/select Best UI framework

773 total views, 2 views today

» Read more

Passing one component value to other component using Angular Observable

Passing one component value to other component using Angular Observable: I have a sidebar component and store coupon component. In the sidebar I have radio options named, All Coupon Deal And in the store coupon component I have both coupons and deals listed. Now I would like to achieve, On click of coupon radio button in the sidebar component it

317 total views, 1 views today

» Read more

Angular 4 Autocomplete using ng2-completer Example

Angular 4 Autocomplete using ng2-completer Example: Autocomplete is the important and most expected functionality in any end user application. Angular 2/4 has many ready-made components in github and npm repositories. Below is the one good component which I came across for autocomplete functionality, this can be easily integrated and used with your angular apps.   Step 1: Install ng2-completer component 

353 total views, 4 views today

» Read more

Scheduler in Spring Boot with 3 Simple Steps Example

Scheduler in Spring Boot with 3 Simple Steps Example: Scheduler in spring boot became very simple and any one create a Cron job or scheduler in spring boot with just 3 steps. Step 1: Enable spring boot for schedules Add @EnableScheduling to your spring boot main class. @SpringBootApplication @EnableScheduling public class SpringBootStarter{ public static void main(String[] args) { SpringApplication.run(SpringBootStarter.class, args); }

229 total views, 1 views today

» Read more

Spring Boot + EhCache Hibernate Working Example

Spring Boot + Ehcache Hibernate Working Example: When I was trying to populate JSON records in my angular app (just 1885 records only), it took around 11 seconds and in angular side I am just populating in the datatable. So I thought to implement ehcache with spring boot to make it faster. After implementing that successfully I am really surprised

292 total views, 1 views today

» Read more
1 2 3 5