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
| Properties prop = new Properties(); | |
| try { | |
| prop.load(this.getClass().getClassLoader().getResourceAsStream("properties/application.routing.properties")); | |
| } catch (IOException e) { | |
| e.printStackTrace(); | |
| } | |
| prop.getProperty(strVal, strVal); |
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
| test { | |
| useTestNG(){ | |
| suites(file('src/test/resources/testng.xml')) | |
| } | |
| } |
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
| @Autowired | |
| Environment env; |
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
| <mvc:annotation-driven ignoreDefaultModelOnRedirect="true" /> |
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
| //${key:defaultValue} | |
| @RequestMapping("${sys.user:/adm/user}" ) |
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
| <!-- 引用 --> | |
| <context:property-placeholder ignore-resource-not-found="true" | |
| location="classpath*:/application.properties,classpath*:/application.development.properties"/> | |
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
| $('.postTitle').each(function(p){ | |
| //向后*nextAll*或向前*prevAll* | |
| $(this).attr('data-date', $(this).nextAll('.postDesc').eq(0).text() ) | |
| }) | |
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
| task svninfo << { | |
| new ByteArrayOutputStream().withStream { os -> | |
| def result = exec { | |
| executable = 'svn' | |
| args = ['info'] | |
| standardOutput = os | |
| } | |
| def outputAsString = os.toString() | |
| def matchLastChangedRev = outputAsString =~ /Last Changed Rev: (\d+)/ | |
| println "Latest Changed Revision #: ${matchLastChangedRev[0][1]}" |
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
| import org.apache.tools.ant.taskdefs.condition.Os | |
| if (Os.isFamily(Os.FAMILY_WINDOWS)) { | |
| } else { | |
| } |
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
| task '_check.libversions'(description: 'check all dependencys version!') << { | |
| def checked = [:] | |
| allprojects { | |
| configurations.each { configuration -> | |
| configuration.allDependencies.each { dependency -> | |
| def version2 = dependency.version | |
| if(version2!=null && !version2.contains('SNAPSHOT') && !checked[dependency]) { | |
| def group = dependency.group | |
| def name = dependency.name | |
| def url = "http://search.maven.org/solrsearch/select?q=g:%22${group}%22%20a:%22${name}%22&wt=mxl" |