Intellij keeps reordering my imports like so: Whereas our maven checkstyle wants the order like so: I should also point out, that this doesn’t apply to all the imports, only some of them. I’d like to set it so intellij organises all packages that end with a * to be sorted above fully qualified imports on the same path? So
Tag: configuration
Hibernate – Error accessing stax stream – with hibernate.properties
I’m getting this error : INFO: HHH000205: Loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver, hibernate.dialect=org.hibernate….
Spring Boot – having all autowired config variables in one class
I am working on a microservice in Spring Boot, and I have a common configuration class where I store all the config variabes that I got from application.properties file. It looks something like this: …
Apache Storm 2.1.0 local DRPC does not return any response although a tuple is well emitted to the collector by the last bolt
I have a problem trying to run a DRPC topology containing one single bolt and query it through a local cluster. After debugging with IntelliJ, the bolt is indeed executed but the JCQueue is stuck in an infinite loop after that the bolt has been executed and until a timeout is sent to the server. Here is the code used
How do I use Multiple Substitutions in Lookups for Log4J 2 configurations? Is it possible?
I have a situation in which I want Log4J 2 to determine which directory to use for logging. The pseudocode is as follows: The configuration I have for properties (in log4j2.xml) is as follows: What I think it should look like: What I’m not sure on is how to get both ${env:LOG_DIR} and ${sys:catalina.base} options in the LOG_DIR property in
How Spring @Autowired binds the SessionFactory object even if there is no SessionFactory instance available
I’m using Hibernate and Spring with Java-based configurations. My config file is this one: @Bean @Autowired public HibernateTransactionManager transactionManager(SessionFactory s) { …
Lazy way to convert log4j.xml to log4j2.xml [closed]
Is there a easy/lazy way (e.g a shell script etc) to convert a big log4j.xml file to log4j2.xml equivalent? Or does everyone do this manually ?
how to log only one level with log4j2?
I’m using log4j2 in my application. What I want is everything up to ‘debug’ to go to console, everything up to ‘info’ to go to myapp.log, and ONLY ‘info’ to go to ‘myapp-audit.log’. The reason is, INFO mostly consists of successful modifications to data (ex. ‘user created’, ‘user updated’, ‘user deleted’, and so on). If is effectively an audit log
Java project with Gradle in IntelliJ IDEA: cannot resolve symbol ‘google’ but project compiles
I have a toy Java project set up with Gradle in IntelliJ IDEA 13.1.2. It compiles and runs fine, but the IDE highlights ‘google’ in import com.google.common.base.Strings; as red and warns “Cannot …
Can’t remove jar from Web App Library
How can I remove the jars in my Web App Library? I manually added a couple jars to the web app library. My program is now pitching a fit so I clearly need to remove them. However, when I go to the Build Path, the “Remove” is greyed out. Answer A project’s Web App Library is composed automatically by Eclipse