随笔分类 -  java

java
摘要:自己创建了一个SSM 项目,使用maven的tomcat7 运行报错 ERROR .web.servlet.DispatcherServlet - Context initialization failedorg.springframework.beans.factory.UnsatisfiedDe 阅读全文
posted @ 2020-04-21 22:41 ☆♂安♀★ 阅读(4842) 评论(0) 推荐(0)
摘要:Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project maven_day02_dao: Failed to deploy artifacts 阅读全文
posted @ 2020-04-20 23:45 ☆♂安♀★ 阅读(939) 评论(0) 推荐(0)
摘要:INFO [jetty-main-1] *SYSTEM org.sonatype.nexus.bootstrap.jetty.JettyServer - Runningjvm 1 | 2020-04-20 20:42:38,244+0800 ERROR [WrapperListener_start_ 阅读全文
posted @ 2020-04-20 21:50 ☆♂安♀★ 阅读(1322) 评论(0) 推荐(0)
摘要:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoad 阅读全文
posted @ 2020-04-19 02:10 ☆♂安♀★ 阅读(2676) 评论(0) 推荐(0)
摘要:报错内容 com.sun.jersey.api.client.UniformInterfaceException: PUT http://.jpg returned a response status of 400 Bad Request 因为跨服务器上传文件,文件名中里面含有中文名称,所以报错,解 阅读全文
posted @ 2020-04-15 03:41 ☆♂安♀★ 阅读(700) 评论(0) 推荐(0)
摘要:Request processing failed; nested exception is com.sun.jersey.api.client.UniformInterfaceException: PUT http://localhost:9082/fileuploadserver_war/upl 阅读全文
posted @ 2020-04-15 03:32 ☆♂安♀★ 阅读(382) 评论(0) 推荐(0)
摘要:pom.xml <dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.2.RELEASE</version> </ 阅读全文
posted @ 2020-03-31 19:58 ☆♂安♀★ 阅读(2469) 评论(0) 推荐(0)
摘要:1、配置来至bean.xml @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations = "classpath:bean.xml") //表示在编译完成后在类路径下的beean.xml文件 public clas 阅读全文
posted @ 2020-03-31 00:28 ☆♂安♀★ 阅读(3709) 评论(0) 推荐(0)
摘要:因为在Test里面使用了注解@Autowired 引入来至bean.xml文件的内容 ,而在Test没有没有办法自动引入,需要在Test类上加上注解 @ContextConfiguration(locations = "classpath:bean.xml")不然会报以下错误 Caught exce 阅读全文
posted @ 2020-03-30 18:52 ☆♂安♀★ 阅读(6385) 评论(0) 推荐(0)
摘要:问题:maven执行package命令打包时,src/main/java路径下的properties文件偶尔丢失 解决方式:pom.xml中加入resources配置 <build> <resources> <resource> <directory>src/main/java</directory 阅读全文
posted @ 2020-03-21 02:15 ☆♂安♀★ 阅读(923) 评论(0) 推荐(0)
摘要:找到work\Catalina\localhost\ 然后访问响应的JSP地址才会动态生成到这个路径下面,不访问不会生成,在org\apache\jsp 下面 阅读全文
posted @ 2020-03-17 02:01 ☆♂安♀★ 阅读(1799) 评论(5) 推荐(0)
摘要:/* * 注解类 * */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Demo04Check { } /**要执行的小明定义的计算器类 * @author :cza * @dat 阅读全文
posted @ 2020-03-10 17:22 ☆♂安♀★ 阅读(672) 评论(0) 推荐(0)
摘要:public static void main(String[] args) throws IOException, NoSuchMethodException, InvocationTargetException, IllegalAccessException, InstantiationExce 阅读全文
posted @ 2020-03-10 03:18 ☆♂安♀★ 阅读(596) 评论(0) 推荐(0)
摘要:反射类,获取类的构造函数 public class Demo01Person { public String getName() { return name; } public Demo01Person(String name, Integer age) { this.name = name; th 阅读全文
posted @ 2020-03-10 02:50 ☆♂安♀★ 阅读(2052) 评论(0) 推荐(0)
摘要:在resources 新建application.properties 分开在resources 新建的多个环境的文件 #测试环境 applicaion-test.properties #开发环境 application-dev.properties #生产环境 application-prod.p 阅读全文
posted @ 2019-08-29 10:58 ☆♂安♀★ 阅读(793) 评论(0) 推荐(0)
摘要:查询当前项目的使用的java包版本。 找到java包相应版本的安装路径。 在 “Source Attachment”对话框下,选择”External location“。路径为安装Java JDK时的路径,关键是在此路径下,找到src.zip,就行了。 阅读全文
posted @ 2017-01-13 14:06 ☆♂安♀★ 阅读(1336) 评论(0) 推荐(0)