This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// "(root)/t1/TestFoo.java" | |
package t1; | |
import static org.testng.Assert.*; | |
import org.testng.annotations.*; | |
public class TestFoo { | |
static void log(Class k, String mes) { | |
System.out.println(Thread.currentThread() + " - " + k.toString() + " - " + mes); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To the extent possible under law, the author(s) have dedicated all | |
# copyright and related and neighboring rights to this software to the | |
# public domain worldwide. This software is distributed without any warranty. | |
# You should have received a copy of the CC0 Public Domain Dedication along | |
# with this software. | |
# If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
# base-files version 4.2-4 | |
# ~/.bashrc: executed by bash(1) for interactive shells. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cmicat.lanVideoServer.spring; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.servlet.view.json.MappingJackson2JsonView; | |
/** | |
* Created by cmicat on 2017/2/12. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.cmicat.lanVideoServer.util; | |
import java.util.Formatter; | |
import java.util.FormatterClosedException; | |
import java.util.IllegalFormatException; | |
import java.util.Locale; | |
/** | |
* 整合了 {@link java.lang.StringBuilder} 和 {@link Formatter}的功能。 | |
* 给 {@link java.lang.StringBuilder } 加上了 appendFormat 函数 |