Tuesday, July 21, 2015

Basic Configuration for logback

Here is the basic logback configuration for these goals: One log file per day. Keep max n days’ log. Over old log file will be automatically deleted (n=30  in this demo) Max size of every log file x  (x=200MB in this demo) logback.xml<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration> <configuration> <!-- define where to store the log file --> ...

Thursday, July 2, 2015

How to set development/test/production environment in spring project (Java Config)

In real life development, a project always need different sets of configurations for development, system test and production environments. Most common variables in these different environments are database location or jms location. If the project uses spring and will not run in any container, the spring...
Powered by Blogger.

About The Author

My Photo
Has been a senior software developer, project manager for 10+ years. Dedicate himself to Alcatel-Lucent and China Telecom for delivering software solutions.