老师这里的用户名user是啥???????????????????????
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Math</title> </head> <body> <script> /* Math 1. Math.round 取整 >=0.5 取1 <0.5 取0 2.Math.floor() 向下取整 返回小于参数值的最大整数 var num=Math.floor(2.8) //2 2.Math.floor() 向上取整 返回大于参数值的最大整数 var num=Math.floor(2.1) //3 3.Math.abs() 绝对值 4. 3.Math.Max() 最大值 5.Math.min() 最小值 6.Math.pow(2,3) //8 ,2的三次方 7.Math.sqrt(num) //返回num的平方根,如果num为负数 返回NaN 8.Math.random() 返回[0,1)的随机数 */ // console.log(Math.round(1.3)); // var num1=Math.floor( Math.random()*5+10); // console.log(num1); //大乐透 var str = ''; for (var i = 1; i <= 7; i++) { var num =0; if (i <= 5) { num = Math.floor(Math.random() * 31 + 1); str+=num+','; } else{ if(i<7){ num = Math.floor(Math.random() * 15 + 1); str =num+','+str; }else{ num = Math.floor(Math.random() * 15 + 1); str =str +num; } } } console.log(str); </script> </body> </html>
老师我设计了最后两个数字在1-16 的随机数 为啥还超了16
进度条.zip
为什么我选择了文件不能上传呢
public Vehicle getvehicle(){
return null;
}老师
这个方法是构造方法吗,如果是为什么与类名不同,如果不是为什么没有返回值类型而且Vehicle首字母大写
[main] #配置数据源 dataSou=com.mchange.v2.c3p0.ComboPooledDataSource dataSou.driverClass=com.mysql.cj.jdbc.Driver dataSou.jdbcUrl=jdbc:mysql://localhost:3306/shiro?useUnicode=true&characterEncoding=utf8&useSSL=false dataSou.user=root dataSou.password=123456 #数据源注入 jdbcRealm=org.apache.shiro.realm.jdbc.JdbcRealm jdbcRealm.dataSource=$dataSou #配置数据源2 dataSou2=com.mchange.v2.c3p0.ComboPooledDataSource dataSou2.driverClass=com.mysql.cj.jdbc.Driver dataSou2.jdbcUrl=jdbc:mysql://localhost:3306/shiro2?useUnicode=true&characterEncoding=utf8&useSSL=false dataSou2.user=root dataSou2.password=123456 #数据源注入2 jdbcRealm2=org.apache.shiro.realm.jdbc.JdbcRealm jdbcRealm2.dataSource=$dataSou2 #配置验证器 authenticationStrategy=org.apache.shiro.authc.pam.FirstSuccessfulStrategy #把jdbcRealm注入到realm securityManager.realm=$jdbcRealm securityManager.realm=$jdbcRealm2 securityManager.authenticator.authenticationStrategy=$authenticationStrategy
注入realm时,如果使用逗号的方式就报错,但是分开使用没事?
jdbcRealm2
在前就显示正确,在后面就用户名不正确,但是我的正确数据是在
jdbcRealm
存放的,他在前不是应该正确才对吗?
第一句话就报错什么原因
老师像您请教一个问题,toString()方法打印出来的是什么呢,重写这个方法是用来做什么呢
老师你好,我配置环境变量中,输入命令系统没有反应,该怎么办
老师 老师我这里的库怎么和视频里的不一样
这两行是啥意思??试了一下测试类里面不添加这两行注解启动就会失败
03post.rar
为什么还是会报错?
http类型的ip能访问https 的网页吗?
https类型的IP能访问http的网页吗?
virtual-host: / # 访问RabbitMQ的哪一个虚拟主机,默认为 /
这个斜杠代表的是一个 v-host 还是 boker
try { t.join(); } catch (InterruptedException e) { e.printStackTrace(); System.out.println("怎么还没有回来,出去看看去"); System.exit(1); }
测试的时候join方法怎么改个异常出来,会导致抛出catch这个里面的代码
问题.md
这里源代码
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637