
java
文章平均质量分 55
加油硕硕
这个作者很懒,什么都没留下…
展开
-
HTML,springboot的中英互译,国际化
一、在资源文件夹resources下新建i18n文件夹,此文件夹下新建login.properties和login_en_CN.properties 和login_zh_US.properties点击左上角的加号添加index.tip和index.total两个单词互译(可添加更多)二、 在index.html中有<p th:text="#{login.tip}">Total Orders</p><p >[[#{login.total}].原创 2021-10-04 19:02:38 · 227 阅读 · 0 评论 -
SSM框架的配置们
pom.xml中导包<dependencies> <!--junit--> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scop原创 2021-09-27 16:51:31 · 94 阅读 · 0 评论 -
Aop切入添加消息日志应用
方法一、例子一个接口interfaceUserService对应方法UserServiceImpt两个将要插入切面的类log 插入方法运行之前after 插入方法运行之后applicationContext.xml文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" ...原创 2021-09-02 19:33:48 · 118 阅读 · 0 评论 -
Spring DI构造器注入 p c
两个bean文件一、public class Address { String address; public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } @Override public String toString() {原创 2021-08-31 09:08:59 · 87 阅读 · 0 评论 -
所有Intellij IDEA Cannot Resolve Symbol XXX问题的解决方法汇总
maven项目遇到这类问题基本上是两方面的原因,类对应的依赖没有加载进来、编译器自身的设置和缓存问题。 解决第一类: 1、检查项目的pom文件,是否必要的依赖都写清楚了; 2、是否使用自己的私有库,<repositories> <repository> <id>release</id> <name>Private Repository</name> <url>http://xxxx.转载 2021-08-29 09:05:51 · 314 阅读 · 0 评论 -
idea配置maven
https://maven.apache.org/官网下载mavendownload->Binary zip archive的zip文件下载到一个没有中文没有空格的目录之下,解压使用jdk1.8及以上版本配置环境变量,新建path中添加打开idea配置mavenFile | Settings | Build, Execution, Deployment | Build Tools | Maven在Maven home path中找到下载的mav.原创 2021-07-29 07:02:56 · 157 阅读 · 0 评论 -
java,IO的图片文件复制
FileInputStream fis=new FileInputStream("D:\\lady.jpg");//取出FileOutputStream fos=new FileOutputStream("D:\\lady2.jpg");//新文件名字byte[] bytes=new byte[1024];int c=0;while ((c=fis.read(bytes))!=-1){ fos.write(bytes,0,c);}fis.close();fos.close();..原创 2021-07-21 16:29:48 · 70 阅读 · 0 评论