- io.springfox:springfox-swagger2:2.4.0
- io.springfox:springfox-swagger-ui:2.4.0
This file contains 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
public static boolean isOsWindows() { | |
String osName = System.getProperty("os.name"); | |
if (osName != null) { | |
osName = ""; | |
} | |
return osName.toUpperCase().contains("WINDOWS"); | |
} |
This file contains 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
class MagicalObject(object): | |
def __init__(self, num): | |
self.num = num | |
def __eq__(self, other): | |
return type(self.num) == type(other) | |
This file contains 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
class MagicalObject(object): | |
def __init__(self, num): | |
self.num = num | |
def __eq__(self, other): | |
self.num += 1 | |
return self.num == other |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
// Which dependency-injection/autowiring option is better, why? | |
public class SpringAutowire{ | |
@Autowire | |
private ClassA a; | |
private ClassB b; | |
private ClassC c; | |
@Autowire | |
public SpringAutowire(ClassB b){ |
This file contains 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
// Place your settings in this file to overwrite default and user settings. | |
{ | |
"editor.wrappingColumn": 0, | |
"files.exclude": { | |
"**/node_modules": {}, | |
"typings": {}, | |
"**/*.map": {}, | |
"**/*.js": { | |
"when": "$(basename).ts" | |
} |
If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.
Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.
If in doubt about what git is doing when you run these commands, just
Compatible only with version 2.4. Enough for simple data storage functionality.
This file contains 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 java.util.Hashtable; | |
import javax.management.MBeanServerConnection; | |
import javax.management.MalformedObjectNameException; | |
import javax.management.ObjectName; | |
import javax.management.remote.JMXConnector; | |
import javax.management.remote.JMXConnectorFactory; | |
import javax.management.remote.JMXServiceURL; | |
import javax.naming.Context; |
OlderNewer