Tuesday, 20 August 2019

spring boot refresh static content in eclipse

There are 2 steps need to implement. 1) If it is Moven project then add the Devtools in Dependency in pom.xml.
org.springframework.boot spring-boot-devtools true 2) Add below lines to the Application.properties. # Path to project project.base-dir=file:///D:/CRM_CSS/crm/crm # Templates reloading during development spring.thymeleaf.prefix=${project.base-dir}/src/main/resources/templates/ spring.thymeleaf.cache=false # Static resources reloading during development spring.resources.static-locations=${project.base-dir}/src/main/resources/static/ spring.main.banner-mode=off spring.main.logStartupInfo=false

Tuesday, 9 July 2019

ORA-12705: Cannot access NLS data files or invalid environment specified

To resolve this issue, need to add below piece of code to your java code.

  Locale.setDefault(Locale.ENGLISH);

Locale.English is the Parameter is get from you pc set up.

Thursday, 4 July 2019

Linux command to make nullable size of existing file.

Below is the command to delete the content of the existing file and make zero size of the file. Please make sure make backup of the file.

cat /dev/null > nohup.out

Sunday, 13 January 2019

Windows Scheduler Last run Result 0x1

Here we are discussing about How to set Task Scheduler for a java file.
Step by steps:
1) Hope you know to go to Task scheduler in Windows: Windows 10, Just search with task scheduler and you can find the Task scheduler.
 and create the Task scheduler.

The setting is: 
Program/script: "C:\Program Files\Java\jre7\bin\javaw.exe" 
Arguments: -jar C:\Users\admin\Desktop\TestTask.jar 
Start in (optional): C:\Users\admin\Desktop ---- added 

If will solve the Last run Result 0x1 Error.