Skip to content
Advertisement

Spring boot – Cannot turn off logging

I am trying to turn off the console output in STS for a spring boot application using the application.properties file. Setting the value logging.level.root does seem to have some effect but I can never turn it off completely and nor can I turn off the auto configuration report output. The banner does get turned off by the property spring.main.banner-mode. For

Apache Mina SFTP SftpSubsystem.Factory()

I am trying to setup a simple SFTP server using Apache Mine SSHD v1.2.0. I have looked at several examples on the web E.g. here, here and here. However they all have the same line in common which I cannot get NetBeans to resolve. NetBeans tells me that it cannot find Factory in SftpSubsystem. The line in question looks as

JNativeHook Post a native key event

I tried to post a new native key pressing to the system using the java library https://github.com/kwhat/jnativehook. The method Needs to get passed a NativeInputEvent object, which needs the Parameters An instance of Global Screen Two integers and one long Based on the documentation I can’t figure out what the required parameters are and how to for example initialize a

Spring Boot not recognizing application.properties file

I’m trying to configure a DynamoDb client with Spring Boot, and placed my endpoints and configuration information in my resources/application.properties file. However, Spring Boot does not seem to pick up these properties. It does pick up the “server.default” key that I have stored in the same file, so it is definitely recognizing the the file itself. Here is my application.properties

Java: is it possible to create a garbage-collectable object that includes an internal heartbeat thread?

Quick question: Is is possible to create a class such as it contain an internal infinite thread (heartbeat) and its objects are automatically garbage collected? Long question: I intend to create a class that includes an internal infinite background thread (such as a heartbeat). Although, the objects of this class shall not need an explicit destroy and shall be garbage-collected

Advertisement