摘要: 首先添加spring约束(原文https://blog.csdn.net/leisure_life/article/details/68483531) 添加了约束,却还没有绑定约束文件,所以没有提示,特别是在没有网络的情况下,从约束中可以看出约束文件的地址在http://www.springfram 阅读全文
posted @ 2018-08-11 10:33 一根绿毛 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 将博客搬至CSDN 阅读全文
posted @ 2018-08-11 10:31 一根绿毛 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1 package 验证登录信息是否合法; 2 3 import java.util.Scanner; 4 5 public class Login_Message_If_Legal { 6 public static void main(String[] args) { 7 Scanner input=new Scanner(System.in); ... 阅读全文
posted @ 2017-07-03 12:27 一根绿毛 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1 package 判断某一年是否为闰年; 2 3 import java.util.Scanner; 4 5 public class If_LeapYear { 6 public static void main(String[] args) { 7 System.out.println("请输入年份"); 8 Scanner in... 阅读全文
posted @ 2017-07-03 12:12 一根绿毛 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 准备工作 1:微软官网下载jdbc包。解压得到如下文件: 注:我下的是6.0版本 其中jre8和jre7中包含了sqljdbc42.jar包和sqljdbc41.jar包(会用到) 准备工作 2 :配置端口协议 找到 运行 开始 → 所有程序 → Microsoft SQL Server 2016  阅读全文
posted @ 2017-07-03 11:36 一根绿毛 阅读(1763) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 3 public class VariableExchange { 4 public static void main(String[] args) { 5 Scanner input=new Scanner(System.in); 6 System.out.println("ple... 阅读全文
posted @ 2017-06-04 22:49 一根绿毛 阅读(234) 评论(1) 推荐(0) 编辑
摘要: 1 import java.io.InputStream; 2 import java.util.Scanner; 3 4 public class ParityCheck { 5 public static void main(String[] args) { 6 boolean boo=true; 7 while(boo){ 8 ... 阅读全文
posted @ 2017-06-03 18:17 一根绿毛 阅读(4602) 评论(0) 推荐(0) 编辑
摘要: 1 import java.net.PasswordAuthentication; 2 import java.util.Scanner; 3 4 public class Encryption { 5 public static void main(String[] args) { 6 System.out.println("enter a charact... 阅读全文
posted @ 2017-06-03 17:46 一根绿毛 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 import java.io.FileNotFoundException; 2 import java.io.PrintStream; 3 4 public class RedirectOutputStream { 5 public static void main(String[] args) { 6 PrintStream out=System.ou... 阅读全文
posted @ 2017-06-03 17:28 一根绿毛 阅读(949) 评论(0) 推荐(0) 编辑
摘要: 1 package 控制台接受输入; 2 3 import java.io.BufferedReader; 4 import java.io.IOException; 5 import java.io.InputStream; 6 import java.io.InputStreamReader; 7 import java.nio.Buffer; 8 import j... 阅读全文
posted @ 2017-06-03 15:55 一根绿毛 阅读(6205) 评论(0) 推荐(0) 编辑