随笔分类 -  java

摘要:@Repository("com.example.demo.dao.impl.SmpUserDaoImpl") public class SmpUserDaoImpl implements SmpUserDao{ @Autowired private JdbcTemplate jdbcTemplate; @Override public SmpUserP... 阅读全文

posted @ 2018-04-16 16:32 阮減显 阅读(106) 评论(0) 推荐(0)

摘要:IDEA环境 win10 跑得刚刚,到xp系统就戈壁 报错 Caused by: java.lang.NoSuchMethodError: javax.servlet.ServletContext.getVirtualServerName()Ljava/lang/String; 原因:tomcat版 阅读全文

posted @ 2018-03-28 18:02 阮減显 阅读(1153) 评论(0) 推荐(0)

摘要:自定义类实现WebApplicationInitializer接口,并实现该接口中的onStartup方法,该方法在Spring容器启动之后就会被自动调用,然后创建AnnotationConfigWebApplicationContext的实例并加载我们的SpringMVC的配置文件最后创建Disp 阅读全文

posted @ 2018-03-22 16:54 阮減显 阅读(166) 评论(0) 推荐(0)

摘要://首先装载一个配置类AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MyConfig.class);配置类这样写@Configuration //等同与xml中的<beans>标 阅读全文

posted @ 2018-03-21 15:16 阮減显 阅读(260) 评论(0) 推荐(0)

摘要:import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; public class mainclazz { public static vo... 阅读全文

posted @ 2017-11-27 14:06 阮減显 阅读(322) 评论(0) 推荐(0)

摘要:package main; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; //import java.nio.channels.ClosedChannelException; i... 阅读全文

posted @ 2016-11-30 17:33 阮減显

导航