
idea
by226t
专于学 敏于思
展开
-
十 静态数据的填写 public static final String
public class Version { public static final String APP_VERSION ="1.0.1"; public static final String APP_LOG ="the info of app\n" + "1 test \n"+ "2 test \n";}原创 2021-01-21 17:43:36 · 1488 阅读 · 0 评论 -
七 获取数据库链接
一 首先要有数据源 ,这里采用DruidDataSource dataSource = new DruidDataSource();二 读取配置文件,写入Properties prop三 从 prop读取参数写入dataSourceString property = prop.getProperty("url");if (property != null) { dataSource.setUrl(property);}property = prop.getProp...原创 2021-01-20 17:23:55 · 309 阅读 · 0 评论 -
四 IDEA 项目另存为处理
一 复制整个项目文件夹到另一个文件夹二删除.idea下的workspace.xml三修改项目根目录下iml文件,与新项目的名字一致四.重新打开项目 ,选中项目,打开 菜单 -- 文件 -项目结构 或者 Ctrl + Alt + Shift + S打开 设置要保持此处的项目名称与步骤三一致...原创 2021-01-15 18:06:19 · 5554 阅读 · 0 评论