Skip to content

Commit 3bbe5af

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 9eab427 + ae6daf5 commit 3bbe5af

120 files changed

Lines changed: 2635 additions & 65 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎cas/cas-server/src/main/resources/application.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ cas.authn.jdbc.query[0].sql=SELECT * FROM users WHERE email = ?
109109
cas.authn.jdbc.query[0].url=jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC
110110
cas.authn.jdbc.query[0].dialect=org.hibernate.dialect.MySQLDialect
111111
cas.authn.jdbc.query[0].user=root
112-
cas.authn.jdbc.query[0].password=
112+
cas.authn.jdbc.query[0].password=root
113113
cas.authn.jdbc.query[0].ddlAuto=none
114114
#cas.authn.jdbc.query[0].driverClass=com.mysql.jdbc.Driver
115115
cas.authn.jdbc.query[0].driverClass=com.mysql.cj.jdbc.Driver
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
-- Dumping database structure for test
2+
CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET latin1 */;
3+
USE `test`;
4+
5+
-- Dumping structure for table test.users
6+
CREATE TABLE IF NOT EXISTS `users` (
7+
`id` int(11) NOT NULL AUTO_INCREMENT,
8+
`email` varchar(50) DEFAULT NULL,
9+
`password` text DEFAULT NULL,
10+
PRIMARY KEY (`id`)
11+
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
12+
13+
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
14+
INSERT INTO `users` (`id`, `email`, `password`) VALUES
15+
(1, 'test@test.com', 'Mellon');
16+
/*!40000 ALTER TABLE `users` ENABLE KEYS */;

‎core-java-8/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@
3030
- [The Difference Between map() and flatMap()](http://www.baeldung.com/java-difference-map-and-flatmap)
3131
- [Merging Streams in Java](http://www.baeldung.com/java-merge-streams)
3232
- [“Stream has already been operated upon or closed” Exception in Java](http://www.baeldung.com/java-stream-operated-upon-or-closed-exception)
33+
- [Display All Time Zones With GMT And UTC in Java](http://www.baeldung.com/java-time-zones)
34+
- [Copy a File with Java](http://www.baeldung.com/java-copy-file)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.annotations;
2+
3+
@Deprecated
4+
class ClassWithAnnotation {
5+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.annotations;
2+
3+
class ClassWithDeprecatedMethod {
4+
5+
@Deprecated
6+
static void deprecatedMethod() {
7+
8+
}
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.baeldung.annotations;
2+
3+
class ClassWithSafeVarargs<T> {
4+
5+
@SafeVarargs
6+
final void iterateOverVarargs(T... args) {
7+
for (T x : args) {
8+
// do stuff with x
9+
}
10+
}
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.annotations;
2+
3+
class ClassWithSuppressWarnings {
4+
5+
@SuppressWarnings("deprecation")
6+
void useDeprecatedMethod() {
7+
ClassWithDeprecatedMethod.deprecatedMethod(); // no warning is generated here
8+
}
9+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.baeldung.annotations;
2+
3+
@FunctionalInterface
4+
interface IntConsumer {
5+
6+
void accept(Integer number);
7+
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.baeldung.annotations;
2+
3+
import java.lang.annotation.Repeatable;
4+
5+
@Repeatable(Intervals.class)
6+
@interface Interval {
7+
int hour() default 1;
8+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.baeldung.annotations;
2+
3+
public class IntervalUsage {
4+
5+
@Interval(hour = 17)
6+
@Interval(hour = 13)
7+
void doPeriodicCleanup() {
8+
}
9+
}

0 commit comments

Comments
 (0)