2、其次故需要自定义配置文件MANIFEST.MF。
3、最后在该项目下建立文件MANIFEST.MF即可。
参考java.util.Properties对象进行书写,另外可以在网上找一写辅助书写材料。
代码:
public static void main(String[] args) {
Properties p = new Properties()
p.setProperty("id", "user1")
p.setProperty("password", "123456")
try{
PrintStream stm = new PrintStream(new File("e:\test.properties"))
p.list(stm)
} catch (IOException e) {
e.printStackTrace()
}
}
JavaConfig就是使用注释来描述Bean配置的组件。JavaConfig 是Spring的一个子项目。传统spring一般都是基于xml配置的,不过后来新增了许多JavaConfig的注解。特别是springboot,基本都是清一色的java config